Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retreiving EXE internal version number for display.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00142101
Message ID:
00142153
Views:
28
>>There's a function in foxtools.fll called GetFileVersion. You can use it like this:
>>
>>DIMENSION laVersion[12]
>>SET LIBRARY TO FOXTOOLS.FLL ADDITIVE
>>GetFileVersion('myprog.exe',@laVersion)
>>?laVersion[4]
The array contains other info about the executable as well (company, copyright, etc.).
>>
>>>Hey there,
>>>
>>>The project file contains version info that gets folded into the EXE during the build. How can I get to that from within the program at run time?
>>>
>>>I've got an About Box that I would like to put this information into so that it updates automatically.
>>>
>>>Thanks
>
>Thank you much.
>And just over an hour!
Be sure to add FoxTools to your project in the Code / API Libraries section. Otherwise you will get error messages about it being uunable to locate GetFileVersion
Steve Ruhl
CitiMortgage, Inc.
steven.ruhl@citibank.com Office
Steve@steven-ruhl.com Home
Previous
Reply
Map
View

Click here to load this message in the networking platform