Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Version(2) check for Dev vs. Runtime
Message
From
19/12/2003 11:59:39
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00860714
Message ID:
00860718
Views:
17
>Hi All,
>
>We have a lot of checks Version(2) <> 0 in our project. We need to fool the project and to run it in dev mode but let it think it is in a run time mode. There are too many checks to modify them, we were curious if we can fool FoxPro by setting whatever Version(2) function checks to make it believe it is in runtime mode.
>
>Thanks.

I dont know if you can fool the Version() function but how about you:

1) Do a global search replace in your project for "Version(2)" and change to, eg, "XVersion()"
2) Create your own XVersion() function which you then can change to return whatever you need for testing purposes.

HTH
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform