Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
GetFileVersion Issue
Message
 
À
19/04/1999 09:28:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00209200
Message ID:
00209644
Vues:
24
>Hi George,
>
>My issue turned out to be the path I was passing to GetFileVersion() - not the function itself. My problem was that JustPath (also from Foxtools), has what I consider to be an inconsistent behavior - and it "got me".
>
>I've been using JustPath to "move up" folder levels, but discovered this.
>
>if lcPath = "C:\Myfolder\test", then JustPath(lcPath) = "C:\MyFolder" - with NO trailing backslash.
>however ....
>if lcPAth = "C:\test", then then JustPath(lcPath) = "C:\" - keeping the backslash. Once I adjusted for this possibility, my problem was solved. thanks for your input!!
>
Hi Ken,

Since you're using GetFileVersion(), I assume you're still using VFP 5.0 with Foxtools. The behavior you describe is the same in VFP 6.0 where the JustPath() function is part of the language. However, there are some issues to watch out for in connection with the JustPath(), JustExt() functions under VFP 5.0/Foxtools in connection with long file names. Be careful with filenames containing multiple periods. As I recall JustExt(), at least, has a problem with these.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform