Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect myapp.exe compiled vfp7 or vfp8
Message
De
22/09/2003 06:49:39
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00831015
Message ID:
00831019
Vues:
17
Hi Soykan,

It works - more or less. The code will fail as soon as we get Europa.
I would prefer
IF VERSION(5)>=800 THEN
SET ENGINEBEHAVIOUR 70
ENDIF
Normaly I do it not that way, I you compiler directives like
*from include file
#IF VERSION(5)<800 THEN
 #DEFINE dnVersion7_Prog					'YES'								&& Ist nicht Version 8.00
#ENDIF &&VERSION(5)<800

**somewhere in code
#IFNDEF dnVersion7_Prog THEN
SET ENGINEBEHAVIOUR 70
#ENDIF
using that I get rid of compiler errors under VFP 7.0


HTH
Agnes
>Hi All,
>i am using this code below for to use "set enginbehavior 70" command in my start.prg if myapp.exe compiled vfp8. it runs without error . is this true for detection ?
>
>TIA
>
>
>  lcversion=TRANSFORM(VERSION(4))
>	      lcSearch='8'
>	      lcStatus=ATC(lcSearch,lcVersion)
>		IF  lcStatus # 0
>			SET ENGINEBEHAVIOR 70 &&80 &&vfp7 compatibility
>	WAIT WINDOW "EngineBehavior 70 Using...." TIMEOUT 0.05
>	    ENDIF
>
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform