Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange coding question...
Message
De
07/06/2001 10:11:32
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
À
07/06/2001 09:39:22
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00516288
Message ID:
00516313
Vues:
16
calvin on first time the controlsource was the evaluation of the iif and not the iif himself.

>When populating columns in a grid, I have some code that goes like this:
>.column1.controlsource=iif(cust.type='R','rfinan.acct','lfinan.acct')
>This works for 99% of my customers. However 1 customer complained that this column did not show anything. He sent me his data and sure enough it showed nothing. After pulling my hair out for about an hour inspiration struck and I chaged the code to read:
>.column1.controlsource="iif(cust.type='R',rfinan.acct,lfinan.acct)" and it now works everywhere.
>Question: Why did the first version ever work?
Alexandre Palma
Senior Application Architect
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform