Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditionally color options in a option box
Message
De
27/05/2012 06:57:43
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
26/05/2012 14:19:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 7
Network:
Windows 2000 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01544512
Message ID:
01544522
Vues:
68
>Hi. I am trying to conditionally set colors in an option box text. For example, RED if out of stock.
>
>I put the following code in the option1.backcolor property (as a test)
>
>=IIF(crsQuoteList.qtynew<=0,255,0)
>
>Thanks, Randy

I suppose that is the correct approach. However, setting this in the properties window would have it evaluated only once, when the form starts. You'll have to recalculate the color, for example, in the object's Refresh() event, or when changing records.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform