Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question:How do you use getcolor to generate hex for web
Message
 
À
03/05/2000 22:05:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00365918
Message ID:
00365924
Vues:
15
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform