Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Version(2) check for Dev vs. Runtime
Message
De
19/12/2003 11:59:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00860714
Message ID:
00860718
Vues:
18
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform