Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IIF in a Control Source
Message
From
28/08/2001 02:37:34
 
 
To
28/08/2001 01:15:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00549697
Message ID:
00549701
Views:
17
>Can I do an IIF statement in a textbox.controlsource? Further, can that IIF statement call a UDF which passes a value back to the control source for display on the screen?
>
>Thanks, Randy

From the property sheet, no (Data Source for this object must be a variable reference). From the Init method I was able to do:

this.ControlSource = IIF(condition,'FirstVar','SecondVar')

and it was accepted and updated the proper variable.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform