Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shortcut designer +IIF
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01058111
Message ID:
01058125
Vues:
18
Hi Fred,

That worked out great. However, I had to add this code whenever I change myVariable
MenuCaption = IIF(myVariable , "\<Filter", "\<Remove Filter")
Thank you very much,
Ali

>>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
>
>You may be able to get away with a macro:
>
>Use &menucaption as the prompt and this code when you show your shortcut.
>
>menucaption = IIF(myVariable,"Filter","Remove Filter")
>DO yourshortcut.mpr
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform