If you are using VFP6+
DIMENSION aVerInfo[1]
=AGETFILEVERSION('aVerInfo',alltrim(SYS(16,1)))
THISFORM.lblVersion.CAPTION = 'Version: '+ALLTRIM(verInfo[1,4])
SYS(16,0) or SYS(16,1) will give you the name of the exe.
HTH
Henri
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only