Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Just want a file extension
Message
 
 
À
27/11/2000 18:46:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00445921
Message ID:
00446116
Vues:
12
Hi!

When you don't expect usage of UNC (like '\\CompName\ShareName\...) and don't expect file names with multiple extensions (like FileName.FileName.FileName.Ext), JustExt function works like a charm. I afrain this function just forwards call to Windows API funtions, so I doubt API will help here.

If you really need such reliability, I can just now write simple algorithms for these functions using VFP code. Probably you can do this too ;))

>I finally found JUSTFNAME,JUSTEXT, etc, but Hacker's Guide is kind of luke warm on them, claiming they aren't foolproof with respect to more complex (but legal) filenames.
>
>Are there more reliable VFP or API functions that do the same thing?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform