Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check for valid filename
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00252469
Message ID:
00252536
Vues:
23
>I don't recall of a function in VFP to check for the validity of filenames.
>But maybe I overlooked it.
>Anybody now how to check the validity of a given filename.
>This comes in handy especially when users are specifying the name for export files.
>For example when they had a filename containing a "*".
>Maybe a Win32 API call ?

Hi Yves,

About the closest you can get is the Foxtools functions CleanPath() and ValidPath(). However, neither is 100% reliable nor work with long file names. Sorth of that, you have to "roll your own".
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform