F Finks Registered User. Local time Today, 09:44 Joined Aug 31, 2001 Messages 11 May 16, 2002 #1 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 ?
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 ?
K KKilfoil Registered User. Local time Today, 04:44 Joined Jul 19, 2001 Messages 336 May 16, 2002 #2 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.
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.
F Finks Registered User. Local time Today, 09:44 Joined Aug 31, 2001 Messages 11 May 16, 2002 #3 Thanks, that's exactly what I was after.