Howard, just working on my short game here. Wondering if this might be shorter/faster ...

code:
$r = $c & &FF
$g = ($c & &FF00) / 256
$b = ($c & &FF0000) / 65536

plus, I concatenated your IIF's (which I like) into a big long expression:

code:
$FadeToBlack = IIF($B>$, $, $B) * 65536 + IIF($G>$, $, $G) * 256 + IIF($R>$, $, $R)

-Shawn

[ 03. November 2003, 17:48: Message edited by: Shawn ]