Hi!
Dooh, I always though #XXXXXX is an integer number...
>>Hi!
>>
>>It is not needed to extract each color. strtran(transform(iColor,'@0'),'0x','#') is enough.
>>
>
There are different ways to do it (Got another answer somewhere in another thread), but it cannot be done in the way you suggested, due to the fact that the color value from GetColor() is in the "format" of BGR and not RGB. So you will have to swap Red part and Blue part.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.