>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