dataccount
Programmer
Is it possible to use the IIF() function with the FPW26a menu designer for text in the "prompt" or "message"?
Using the DEFINE MENU and DEFINE BAR commands the following code allows me to change the popup bar text and message based on whether "archview" evaluates to true:
DEFINE BAR 1 OF otpop1 PROMPT iif(archview,"\<Switch To Active ", ;
"\<Switch To Archives"
message ;
iif(archview,"Return To The Active Records", ;
"View Archived Records In Same Screen Format As Active Records"
I have not been able to do this using the menu designer. It doesn't even work after manually modifying the ".mpr" file by removing the extra leading and ending quotations.
Any help would be appreciated, since I am committed both to using the Menu Designer and switching to VFP. Thanks.
Jim
Using the DEFINE MENU and DEFINE BAR commands the following code allows me to change the popup bar text and message based on whether "archview" evaluates to true:
DEFINE BAR 1 OF otpop1 PROMPT iif(archview,"\<Switch To Active ", ;
"\<Switch To Archives"
iif(archview,"Return To The Active Records", ;
"View Archived Records In Same Screen Format As Active Records"
I have not been able to do this using the menu designer. It doesn't even work after manually modifying the ".mpr" file by removing the extra leading and ending quotations.
Any help would be appreciated, since I am committed both to using the Menu Designer and switching to VFP. Thanks.
Jim