Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Version Number for Form Caption
Message
 
 
À
01/10/2003 19:33:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00834030
Message ID:
00834032
Vues:
20
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform