CF.RGBtoHex ( DRGB )
Converts RGB color string into a Hex color string
Average rating: 4.6 (24 votes) Log in to vote
Thomas Hellwig DELASOCIAL GmbH http://www.delasocial.com/ |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This function converts a decimal RGB color string like "255083064" into a hexadecimal color string like "#FF5340".
Comments
unix, Japan Mar 2, 2014 |
||
In your result, some value should be 0 become 1 ? Let ( s = GetAsCSS ( TextColor ( ¶ ; Left ( DRGB ; 3 ) *256*256 + Middle ( DRGB ; 4 ; 3 ) * 256 + Right ( DRGB ; 3 ) ) ) ; Middle ( s ; Position ( s ; "#" ; 1 ; 1 ) ; 7 ) ) |
||
T. Hellwig, Hamburg (GER) Mar 8, 2014 |
||
thank you! i am working to solve the problem. and thanks for your alternative example! | ||
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.