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 07:26:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00831015
Message ID:
00831024
Vues:
20
No because not all older versions have version(4) and would error. A simple workaround might be :
LOCAL lNot8plus
on error lNot8plus = .t.
set enginebehavior 70
on error
if lNot8plus
*...
endif
Cetin

>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
>
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform