Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can we put a IIF command in a form caption ?
Message
De
07/10/1999 17:27:23
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00273977
Message ID:
00273982
Vues:
18
>I tried IIF(myvar,"Title1","Title2") in the form caption.
>I also tried &IIF(myvar,"Title1","Title2")
>It was as is in the window, it wasn't changed to "Title1" or "Title2".
>
>What did I missed ?
>
>THanks
>eric

Try:

=IIF(myvar,"Title1","Title2")

Also, when is myvar in scope? You might want to do this in the init...

This.Caption = iif( myVar, "Title1", "Title2" )

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform