Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional Programming By Version
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00811991
Message ID:
00811994
Vues:
51
Kirk,

Change IF to #IF and it'll compile correctly.
#if version(5)= 800
    SET ENGINEBEHAVIOR
#else
    *VFP7 Code
#endif
>I am moving my application to VFP8, but during the process, I need/want to be able to recompile in 7 if I have a major issue that needs to be corrected. Is there a way to condition the code by version, like:
>
>
>if subs(version(4),1,2)=[08]
>    SET ENGINEBEHAVIOR
>else
>    *VFP7 Code
>endif>
>
>Right now, if I try this type of code, I get compile error in 7 with the set enginebehavior
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform