Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do i color code text boxes based on db?
Message
De
13/01/2002 11:49:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00594778
Message ID:
00604064
Vues:
44
This message has been marked as a message which has helped to the initial question of the thread.
>Dragan,
>
>One last question and then I promise to leave you alone :). In your email below you say the function should return numbers between 0 and 1677215. Well what if I am using a color like RGB(1,128,255) which equals 0x00ff8001. That value is not within the range. So in this case am I forced to call the RGB function? Saying this.forecolor = FF8001 obviously results in an error.

The error is only in your assumption that there is an error - since you know hex, 1677215==0xffffff, so that is the maximal RGB value possible (full white). If you got an error there, it was because of the syntax - this.forecolor = 0xFF8001 is the way to use hex in VFP, otherwise VFP will look for a variable named FF8001, simply because it begins with a character. Albert has explained it better already.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform