Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can we put a IIF command in a form caption ?
Message
From
19/10/1999 17:10:29
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00273977
Message ID:
00278495
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform