Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Control source in a grid
Message
 
À
25/06/2000 23:33:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00384510
Message ID:
00384511
Vues:
34
>I have 3 differnt letters in one of my fields "D","R",or nothing I want to display 3 differnt words in my grid for each record in that field like if there is a "D" in there it says defaulted or "R" then Redeem would show. Then for the blank one I want to show the word ACTIVE in the cell of my grid. I was able to use the IIF() statement to check for 1 letter but if i have 2 or 3 differnt checks to do iff() only works to check for 1 state. I Tried to put a case statement in the control source for my coloumn but it wont take it. I'm just learning how to program in VFP this stuff probably sounds basic to most of you guys.
(Iif(orders.status='D','DEFAULTED',IIF(orders.status='R','REDEEMED','ACTIVE')))
Iif() function can be extended up to n conditions.

DO CASE can not be used as controlsource for columns. You can only use on line Expression.

HTH
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform