Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with IIF Statement
Message
De
29/10/2002 13:00:48
 
 
À
29/10/2002 12:55:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00716518
Message ID:
00716524
Vues:
19
>This seems like it should be simple enough to do, yet I am having problems. I am trying to set the text for a label dynamically using an IIF statement. I don't get an error message with the statement, but it isn't working either. If I use and IF...ENDIF the code works fine, but it just looks so much more messy and complex then. Can someone take a look at this and help me figure out why it isn't working....
>
>IIF(lltranslate, thisform.labelbase1.Caption = "",thisform.labelbase1.Caption = "")
>
>TIA!

Joe,

Your statement does not do anything, ie thisform.labelbase1.Caption = "" is a logical value, not an assignment

thisform.labelbase1.Caption =iif( lltranslate, 'aa', 'bb')
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform