Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Just want a file extension
Message
From
28/11/2000 08:51:16
 
 
To
27/11/2000 18:46:38
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00445921
Message ID:
00446116
Views:
9
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform