Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
=IIF..... in design
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00179012
Message ID:
00179092
Views:
21
>I have a base form where in properties window I set a value for a custom property:
>=IIF(!ThisForm.plTest, '123','456') for ThisForm.pcTest1.
>The default value for ThisForm.plTest = .F.
>In concrete form I set ThisForm.plTest = .T. but at run time ThisForm.pcTest1 = '123'. What helps is if I at design time open concrete form and click on =IIF(!ThisForm.plTest,'123','456')expression line (gets bold). Is there any way to have VFP evaluate values properly without these design machinations?
>Thanks Mark

Mark, write it as:
=eval("IIF(!ThisForm.plTest, '123', '456')")
and it will work.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform