MindSabre
07-11-2007, 05:36 AM
What's wrong with this code? It generates the error:
Cannot convert method group 'ToString' to non-delegate type 'string'. Did you intend to invoke the method?
Code:
string Str1, Str2;
Str1=Position.MarketPosition.ToString;
Str2=Position.Quantity.ToString;
Print(Str1);
Print(Str2);
Cannot convert method group 'ToString' to non-delegate type 'string'. Did you intend to invoke the method?
Code:
string Str1, Str2;
Str1=Position.MarketPosition.ToString;
Str2=Position.Quantity.ToString;
Print(Str1);
Print(Str2);