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!

Application.ActiveProject don't work in EXE 1

Status
Not open for further replies.

georg59

Programmer
Sep 1, 2001
26
DE
i like to show the version of my applicaton in a info-box.
In the init event of the form i have:

[tt]thisform.lblAppVersion.Caption = Application.ActiveProject.VersionProduct()[/tt]

This works very well. But after I build an exe-file and start it, I get an error: "Can't evaluate object".

Does anybody know what's going wrong?




Georg Nickel
Software Development
Germany

 
Georg,

The project is a component of the development environment, and is not available at run time.

A better way to get the version information is to use the AGETFILEVERSION( ) function.

Mike


Mike Lewis
Edinburgh, Scotland
 
Hello Mike,
I spent three ours for that problem and couldn't understand.
--
I also had this idea to do it with AGETFILEVERSION, but I thought it would be a better way not to access to the file.
But it seems there's no other way.

Thank's a lot for your quick answer, now i know what to do. That gives a big star for you!

Georg Nickel
Software Development
Germany

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top