![]() |
Operator Cannot be applied to operand
private double avgdailyprice = 1;
Print("Show this: " && avgdailyprice); |
What language; C#? && is the and operator, you cannot concat with that. Use + for string concatenation. I don't think the && exists in VB.NET; the & would be concat. Although I think that + is overloaded to work with strings in VB.NET as well, but I cannot recall.
|
def not C# or VB
'Print' as it relates to the context is not a valid C# or VB method |
its C#, thanks, the + worked.
|
Quote:
Perhaps a custom method in place here. |
You should write + sign for concatenation in C# like console.WriteLine("hello"+"World");
|
| All times are GMT +1. The time now is 10:28 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.