Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Single exit-point
Message
 
À
03/04/2002 10:23:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00640316
Message ID:
00640361
Vues:
25
You're right!

IMO, this is a good one. I was too lazy to find out, if VFP accepts "empty" case branches, and didn't remember if it does.

>
>llSuccess = .F.
>DO CASE
>   CASE NOT DoFirstStep()
>   CASE NOT DoSecondStep()
>   CASE NOT DoThirdStep()
>   OTHERWISE
>      llSuccess = .T.
>ENDCASE
>
Ok, this works as well, but I find it hard to read and debug:
llSuccess = DoFirstStep();
  and DoSecondStep();
  and DoThirdStep()
Armin

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform