Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Invalid characters for file name
Message
From
24/08/2006 18:44:44
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7
Miscellaneous
Thread ID:
01148125
Message ID:
01148412
Views:
13
>>I want to ensure that the name entered for a new file name is valid.
>>
>>Looking at the Microsoft KB, they say that these are invalid characters:
>>\ / : * ? " < > |
>>
>>I also know that these are invalid names for files: COM1, LPT1.
>>
>>Is there a comprehensive list or a routine somewhere?
>
>
>Hi Cyril,
>
>Just an idea. You can use FCREATE() to create a file. If it returns valid handle, close and delete it. Otherwise it's invalid.


Thanks for the idea. I want to try and capture as many invalid characters as I can first. This arose when I caught myself out by typing a : in the field name from which a file is made!

Cyril
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform