Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check if a file exists
Message
 
 
To
04/05/2004 09:33:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00900659
Message ID:
00900683
Views:
9
Gregory,

The ADIR() function retuns # of files found so in your code ALEN() will fail always.
return  (adir(aa, FileName, 'DHS') > 0)
<snip>
>
>*--------------------------------------------------------------------------
>Function	FileExists(FileName)
>
> 	return  (alen(adir(aa, FileName, 'DHS')) > 0)
>endfunc
>*--------------------------------------------------------------------------
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform