Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can we put a IIF command in a form caption ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00273977
Message ID:
00278495
Vues:
15
>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 ?

The caption holds a character string - it's evaluated once and once only per assignment. If you want to update it, you need to reassign its value - a timer in the form that fires and re-evaluates the caption periodically will handle this.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform