Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange situation - no error and not all code run
Message
From
04/02/2014 19:50:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01593215
Message ID:
01593229
Views:
46
>I figured this out.
>
>In VFP case expression it works this way:
>
>IF OneCondition IS TRUE
>    do the code here
>
>and don't process other case statements.
>
>I completely forgot and this took a lot of my time before I finally understood it.

http://breisebreiseleighgoleire1969.files.wordpress.com/2013/05/head-slap.gif

-----
Visual FreePro supports the case statements you were looking for:
See: http://www.visual-freepro.org/wiki/index.php/DO_CASE

Specifically:
SWITCH x NOAUTOEXIT
    CASE 1:
        WAIT WINDOW "This code will have been executed if x were 1"
    CASE 2:
        WAIT WINDOW "This code will have been executed if x were 1, or 2"
    CASE 3:
        WAIT WINDOW "This code will have been executed if x were 1, 2, or 3"
        EXIT
ENDSWITCH
Previous
Reply
Map
View

Click here to load this message in the networking platform