Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Conditional Programming By Version
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00811991
Message ID:
00811994
Views:
37
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform