General information
Category:
Coding, syntax & commands
>>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only