problem with ObjetcSet

 

Hi, I'm try to recall the OrderTicket() in the ObjectSetDouble function, but I haven't in the autocomplete function, when I try to recall it.

Where is the mistake?

Thank you!

void CreateLabels()
 { 

int total = OrdersTotal();

 for(int cnt=0;cnt<=total;cnt++)
     {
     OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES) ;           
       
       
       a = 1 + cnt ;      
       ObjectCreate(a, OBJ_LABEL, 0, 0, 0, 0);
       ObjectSet(a, OBJPROP_CORNER, mCorn);
       ObjectSet(a, OBJPROP_XDISTANCE, 10);
       ObjectSet(a, OBJPROP_YDISTANCE, 40 );        
       ObjectSetDouble(a,, mTextSize, "Verdana", mTextCol );
Reason: