Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Technique to validate a file name
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00086002
Message ID:
00086030
Vues:
22
>>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.
>
>Michel,
>
>Look in the Extended Foxtools Help file at ValidPath() or CleanPath(). The only problem with these functions is that they're inexact when it comes to long file names.

Thanks but I'll have to avoid this technique as long file names are possible.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform