Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this a bug?
Message
De
13/10/2003 08:09:09
 
 
À
12/10/2003 04:24:44
Michael Ouellette
Australian Technical Services (VIC) Pty
Australie
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Divers
Thread ID:
00837887
Message ID:
00838038
Vues:
28
*-------------------------------------------------------------
* 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???
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform