Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to detect myapp.exe compiled vfp7 or vfp8
Message
From
22/09/2003 07:26:42
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00831015
Message ID:
00831024
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform