Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Development Mode
Message
 
 
À
14/10/2020 09:04:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01676646
Message ID:
01676654
Vues:
58
I once tested version(2) and could run an EXE file from VFP IDE (DO test.exe) and it would return Version(2) = 2 (development mode). So a client could run the exe in devmode with that approach if he installs VFP IDE.

>Hi,
>Apart from Tore's usefull correct information there is also version() , if version(2) is returning 2 you are in development if version(2) returns 0 you are in Run time.
>usufull if you want to have 2 different settings of your path depending on the version.
>e.g.
>
>
>Set Path To []
>? SET('path')
>*** Go ahead and set the path
>If Version(2) # 0
>	***  We are in Development Mode
>	***  Set up Project search path
>	m.lcPath = Home() + ';' + Fullpath( Curdir() ) + [Class;  Data; Forms; Images ; Menu; Progs ; Reports; ReportingFiles]
>
>Else
>	*** We are in Production Mode
>	*** Set up application search paths
>	m.lcPath = Fullpath( Curdir() ) + [ ;Reports ; ReportingFiles]
>Endif
>
>
>Stay healthy,
>Koen
>>I'd like to bypass code while in development mode only.
>>
>>I'm fairly certain there's a way VFP knows it's running under development mode as opposed to running the EXE.
>>
>>Any help?
>>
>>Thanks,
>>Rich Murillo
Christian Isberner
Software Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform