Jump to Real's How-to Main page

Have a FileExists function with wildcard

[boolean of_FileExists(string as_file)]

Integer li_entries
n_cst_filesrvwin32 lnv_fsrv
n_cst_dirattrib   lnv_dirlist[]

lnv_fsrv = CREATE n_cst_filesrvwin32
li_entries = lnv_fsrv.of_DirList(as_file, 0, lnv_dirlist)
DESTROY lnv_fsrv

RETURN (li_entries > 0 )

If you find this article useful, consider making a small donation
to show your supportfor this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2005
[ home ]