Converting Backcolors

Finks

Registered User.
Local time
Today, 09:44
Joined
Aug 31, 2001
Messages
11
Does anyone know, or if it's at all possible, to split a forms backcolor (which is stored as a Long) into it's RGB componenets ?
 
There may be a better way to get this but...

The MSAccess long color value is equal to
R + Y*256 + B*256^2

So you should be able to 'extract' the respective values using mod and int.
 
Thanks, that's exactly what I was after.
 

Users who are viewing this thread

Back
Top Bottom