Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a bug?
Message
From
13/10/2003 08:09:09
 
 
To
12/10/2003 04:24:44
Michael Ouellette
Australian Technical Services (VIC) Pty
Australia
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Miscellaneous
Thread ID:
00837887
Message ID:
00838038
Views:
29
*-------------------------------------------------------------
* This function is better at detecting the presence of a file.
FUNCTION FileExists(FileName)
	RETURN !EMPTY(ADIR(laDir,FileName))
ENDFUNC
*-------------------------------------------------------------
>I'm using VFP7 SP1.
>
>THISFORM.txtbackup.VALUE ="A:\"
>
>SELECT products
>?FILE(ALLTRIM(THISFORM.txtbackup.VALUE)+ALIAS()+".DBF")
>
>This returns true regardless of whether a file actually exists in the
>THISFORM.txtbackup.VALUE directory
>
>?file("A:\PRODUCTS.DBF")
>This also returns true when there is no file
>
>Am I missing something???
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform