Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid characters for file name
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7
Divers
Thread ID:
01148125
Message ID:
01148412
Vues:
14
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform