Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut designer +IIF
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01058111
Message ID:
01058116
Views:
9
>Hi Everybody,
>
>I am making a shortcut using short cut designer. I would like to put a conditional statement like this for the prompt:
IIF(myVariabl = .T., “Filter”, "Remove Filter”)
When I put this in the prompt box in shortcut designer I get the following error:
>
>
DEFINE BAR 2 OF shortcut PROMPT "IIF(myVariabl = .T. , "\<Filter", "\<Remove Filter")"
>Command contains unrecognized phrase/keyword.
>
>How can I tell the shortcut designer that it is a conditional if, not a character expression?
>
>Thank you,
>Ali

I don't think you can. You'll have to construct your shortcut menu programmatically with the proper constant in your define bar command in order to have a differing prompt.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform