Bug in ColorToString - page 2

Vladimir Karputov
Moderator
251597
Vladimir Karputov  
The current build is 2900. We need to wait for the next build.
Vladimir Karputov
Moderator
251597
Vladimir Karputov  

An update has been released:

MetaTrader 5 x64 build 2902 started for MetaQuotes Software Corp.


The code:

//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
   string clr=ColorToString(C'0,255,0',false); // R,G,B
   Print("false ",clr);
   clr=ColorToString(C'0,255,0',true); // color
   Print("true ",clr);
  }


Result:

false 0,255,0
true clrLime
Angelo Ferraro
284
Angelo Ferraro  
Vladimir Karputov:

An update has been released:


The code:


Result:

Perfect!