Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Version Of VFP Used To Develop Executable 1

Status
Not open for further replies.

mdav2

Programmer
Aug 22, 2000
363
GB
Is it possible to retrieve the version of FoxPro used to create an executable? I know you can look for the support files used to do it manually but I am sure there must be a command or some code that will do it.

Mark Davies
Warwickshire County Council
 
To clarify ...

VERSION() will tell you which version you are running under (strictly speaking, the version of the runtime files). That's not quite the same as the version that was used to build the executable.

That said, the two would normally be expected to match. If you built an executable under VFP 9.0, you'd expect to run it under VFP 9.0 runtimes.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Perhaps the OP problem is to find out which runtime version (and service pack level) is needed. Somehwere within the first few KB VisualFoxproRuntime.N is included in a VFP built EXE, but N is only the main version number.

From my experience I had a problem as I deployed a VFP9SP1 compiled version to clients, which only had the VFP9SP0 runtime installed, assuming the client company already had rolled out the SP1 Runtime installation. It lead to start errors. But I think that SP level dependancy is not always checked and can lead to problems, when VFP accepts and uses the wrong SP level runtime.

Bye, Olaf.
 
Technically, you can tell an exe which version of the runtime to use with a command line switch:

-DFileName

(I've used it to test bugs in various versions.)

To the OP's question, there's nothing built in.
 
Thanks guys, the version command does the job.

Mark Davies
Warwickshire County Council
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top