Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding Do Case in menu code snippet
Message
 
 
To
17/01/1999 12:06:48
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00176994
Message ID:
00177288
Views:
36
>... Is there any possibility to modify the menu to use DO CASE.

The valid clause calls the function below. The function has to return a logical. If .T. is returned, the selection is valid and code execution continues. If .F. is returned, the selection is invalid and menu execution continues.
PROCEDURE scrollproc
llRetVal = .f.
DO CASE
   CASE mchoice = 1
      some code here (optional)
      llRetVal = .T.
   CASE mchoice = 2
      some code here (optional)
      llRetVal = .T.
   blah, blah, blah
ENDCASE
Return llRetVal
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform