Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Version Number for Form Caption
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00834030
Message ID:
00834032
Views:
22
This message has been marked as the solution to the initial question of the thread.
>Hello,
>
>I would like to use the version number of the exe as part of the main form's caption, any help would be appreciated.
>
>Thanks,
>
Hi Troy,

You can use AGETFILEVERSION() function
LOCAL lcSys16, lcVersion, aFileInfo[1]
lcSys16 = SYS(16,0)
lcVersion = ""
LOCAL ARRAY aFileInfo[1]
IF AGETFILEVERSION(aFileInfo, lcSys16) > 0
	lcVersion = "Ver. " + aFileInfo[11] 
ELSE
	lcVersion = "Development. "  
ENDIF				
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform