Page 1 of 1
how to convert color integer value to hex
Posted: Fri Aug 07, 2009 12:27 pm
by ConvertFromOldNGs
by Scott >> Mon, 3 Nov 2003 7:57:01 GMT
Hi
We need convert color integer value to Hex, Who has a method to do it?
I'd appreciated if someone can provide us the method.
Regards,
Scott
Bizpoint System Pte Ltd
Re: how to convert color integer value to hex
Posted: Fri Aug 07, 2009 12:27 pm
by ConvertFromOldNGs
by Torrie >> Mon, 3 Nov 2003 13:31:25 GMT
Try the hidden method convertToHex defined for the Integer type, eg
write 256.convertToHex;
Re: how to convert color integer value to hex
Posted: Fri Aug 07, 2009 12:27 pm
by ConvertFromOldNGs
by cnwdad1 >> Mon, 3 Nov 2003 20:06:59 GMT
Scott,
The attached zip file contains two methods - load them into your schema using the Advanced options of the schema (method) load to set the target schema, and they will appear in your Integer primitive's list of methods. Call the cnEcGetHexColor() method to return the hex value of the integer receiver.
regards,
darrell.
Re: how to convert color integer value to hex
Posted: Fri Aug 07, 2009 12:27 pm
by ConvertFromOldNGs
by Scott >> Tue, 4 Nov 2003 7:42:25 GMT
Hi Darrell and Torrie,
Thanks for your helps.
They both can work for my system.
Regards,
Scott