Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF() Evaluates Differently Than IF?
Message
De
12/08/1997 18:20:20
Biju Varghese
M.H Alshaya Co W.L.L
Kuwait, Kuwait
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00044321
Message ID:
00044354
Vues:
31
> > Here's an odd one. The following code returns two different answers, even > though they should be identical: > > **************** > * The following code makes vp_dbfname = "" > **************** > iif(EMPTY(thisform.ctextbox1.Value),vp_dbfname = "", ; > vp_dbfname = thisform.ctextbox1.Value) > > **************** > * This code makes vp_dbfname = thisform.ctextbox1.Value > **************** > if EMPTY(thisform.ctextbox1.Value) > vp_dbfname="" > else > vp_dbfname = thisform.ctextbox1.Value > endif Try: vp_DbfName= iif( empty(thisForm.cTextBox1.value), ; '', thisForm.cTextBox1.value ) Or even better: vp_DbfName= thisForm.cTextBox1.value Regards, Biju
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform