Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange situation - no error and not all code run
Message
De
04/02/2014 19:50:44
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01593215
Message ID:
01593229
Vues:
43
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform