Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Single exit-point
Message
 
To
03/04/2002 10:23:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00640316
Message ID:
00640361
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform