ObjectSetText and variable
Try . . .
ObjectSetText("Texte", DoubleToStr(Total,0), 8, "Times New Roman", White);
Great, thank you.
The complete code if someone wants to copy
Total=OrdersTotal(); ObjectCreate("Texte", OBJ_LABEL, 0, 0, 0); ObjectSetText("Texte", DoubleToStr(Total,0), 8, "Times New Roman", White); ObjectSet("Texte", OBJPROP_XDISTANCE, 1300); ObjectSet("Texte", OBJPROP_YDISTANCE, 10);
Regards
Hello,
Sorry for my bad english, I'm Frenchy -:)
Newbie, I try to use ObjectSetText.
I managed to display correctly a ObjetSetText when it is a comment
Exemple :
But when I want display the value of a variable, "Label" only appears on the screen.
I try with "Total", (Total) or Total, but nothing.
Of course, Total is declare int above in code
If someone can help me.
Regards
Arsouille