Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Do Case in menu code snippet
Message
 
 
À
17/01/1999 12:06:48
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00176994
Message ID:
00177288
Vues:
34
>... 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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform