Hi Greg,
lnColor = getcolor()
? '#' + right(tran(lnColor, '@0'), 6)
Store either lnColor or the color string.
Cheers,
Andrew
>I want to use the GetColor() function to allow a user to select a color for the background of a website. The website needs the color in the 6 digit hex format "#FFFFFF", the getcolor() is returning an integer. Does anyone know a way to convert the integer to the hex value for display on web. I'd also like to be able to convert it back to the integer as well so I don't have to store redundent data. Plus the colors may be picked from a web page as well as a FoxPro client front end.
>
>If the getcolor() isn't possible, does anyone know or have a web compatiable color picker written in VFP code.
>
>Thank you,
>
>Greg Moss
>gmoss@midwest.net
>
www.SiteProposals.com
If we were to introduce Visual FoxBase+, would we be able to work from the dotNet Prompt?
From Top 22 Developer Responses to defects in Software
2. "It’s not a bug, it’s a feature."
1. "I thought I fixed that."
All my FoxTalk and other articles are available on my
web site.
Unless specifically identified otherwise, anthing posted here is purely my opinion and may or may not reflect the policies or practices of Microsoft.