Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Version
Message
 
 
À
11/08/2006 17:08:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01144663
Message ID:
01144950
Vues:
9
>>>>>I lost my snippet of code that puts the version of a VFP executable into a variable. Does anyone have that handy?
>>>>>
>>>>>Thanks from Canada, home of the great white slush. (Yep - it's melting)
>>>>
>>>>You mean AGETFILEVERSION()? It's element 11 in the returned array for VFP, element 4 your version of the .EXE.
>>>
>>>Okay, I noodled around with that and had no success. Please give me a hint.
>>
>>
>>IF AGETFILEVERSION(aGetFileInfo,"<exe_name>") > 1
>>	lcVersion = aGetFileInfo[4]
>>ENDIF
>>
>
>Okay, I got it going. All I need to do now is get the build number to show. e.g. 1.234.56

I'm not certain what you're missing. If you declare lcVersion as a string it should give you the full version string, including the build number.
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform