Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Expression?
Message
De
16/05/2001 17:35:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00508032
Message ID:
00508129
Vues:
24
>What makes this an invalid expression?
>
>This.SetAll('DynamicBackColor', 'IIF(checknum = 0, RGB(255,0,0), IIF(amount > 500, RGB(255,0,255), RGB(255,255,255)))', 'column')
>
>How should I set the backcolor to two colors based on two different conditions?

Comparing it to this example from a help screen
Form1.Grid1.SetAll("BackColor", RGB(255, 0, 0), "Column")
I don't think your second arguement is supposed to be character.
This.SetAll('DynamicBackColor', IIF(checknum = 0, RGB(255,0,0), IIF(amount > 500, RGB(255,0,255), RGB(255,255,255))), 'column')
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform