formatbaseN in the UDF
Pascal
> -----Original Message-----
> From: Michael Kear [mailto:[EMAIL PROTECTED]
> Sent: dinsdag 30 maart 2004 15:13
> To: CF-Talk
> Subject: function for decimal to hex and back?
>
> Is there a function to convert a number from decimal to hex
> and back again?
> I'm doing a small app that displays colours, and I need to do
> some math on the RGB values of the colours, then display the
> Hex value of the resulting colour. I have already found the
> InputBaseN and FormatBaseN functions, but they won't display
> a 2 digit number regardless.
>
>
>
> For example, hex 05 will display as 5, and I can't use
> numberformat(_expression_, "00") because that barfs on values like A5.
>
>
>
> Any ideas?
>
>
>
> Cheers
>
> Mike Kear
>
> Windsor, NSW, Australia
>
> AFP Webworks
>
> http://afpwebworks.com
>
>
>
>
>
>
>
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

