Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Technique to validate a file name
Message
From
20/03/1998 11:03:22
 
 
To
20/03/1998 10:52:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00086002
Message ID:
00086008
Views:
21
>What would be the best technique to validate a file name? I am also looking to see if someone has already done that.
>
>What I need to have is a function which will validate a string to see if this is a valid file name. The string can be something like c:\data\client1\reports\monthly.txt.
>
>The first part is to validate for all non accepted character in the string.
>
>The second part is to validate is the path is valid.
>
>Any technique, advise or sample is appreciated.

What if you just FCREATE("c:\....") trapping the error which can happen if new fiel name is invalid. If it's Ok, you just FCLOSE() and DELETE FILE.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform