ObjectSetText why not to set the description?

 
string comnts="Buy Calculated lots: 18.27  Loss: 13483 $ (2.04%)  Margin: 12456 $";
ObjectSetText("TradeMessageLotBuy",comnts, 8, "Tahoma", Lime); 
error=GetLastError(); 

if comnts="333333", then set description.

In the old version, this working good. In 600, not.

And

the most interesting thing that

error is 0 !

 
ttechnik:

if comnts="333333", then set description.

In the old version, this working good. In 600, not.

What does

if comnts="333333", then set description

mean?

 
GumRai:

What does

if comnts="333333", then set description

mean?


not set to label's description this:
"Buy Calculated lots: 18.27  Loss: 13483 $ (2.04%)  Margin: 12456 $"
 
ttechnik:

not set to label's description this:

No one has any idea what is happening?
 
ttechnik:

No one has any idea what is happening?
Please post working code so that others can reproduce your issue and investigate it.
 
wrong:
string comnts="Buy Calculated lots: 18.27  Loss: 13483 $ (2.04%)  Margin: 12456 $";

good, it can enter this:
string comnts="Buy Calculated lots: 0.01  Loss: 4 $ (0.00%)  Margin: 7 $";
RaptorUK:
Please post working code so that others can reproduce your issue and investigate it.


I attached it.

Please probe it.

Files:
 
ttechnik:

I attached it.

Please probe it.


OK, it seems that ObjectSetText() no longer does what it used to do . . .

You can use . . .

ObjectSetString(0, "TradeMessageLotBuy" ,OBJPROP_TEXT ,"MinProfit:        %");  

. . . instead.

PLease report this to the Service Desk

 
RaptorUK:


OK, it seems that ObjectSetText() no longer does what it used to do . . .

You can use . . .

. . . instead.

PLease report this to the Service Desk


I send it
 
ttechnik:

I send it
Thank you
 
RaptorUK:
Thank you


They said:


63 characters without zero terminating

Without??? Why not generated error?