ColorToString
It converts color value into string of "R,G,B" form.
string ColorToString( |
Parameters
color_value
[in] Color value in color type variable.
color_name
[in] Sign of the necessity to return color name, if color name is identical to one of predefined color constants.
Return Value
String presentation of color as "R,G,B", where R, G and B are decimal constants from 0 to 255 converted into a string. If the color_name=true parameter is set, it will try to convert color value into color name.
Example:
string clr=ColorToString(C'0,255,0'); // green color |
© 2000-2010, MetaQuotes Software Corp.