Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sure_File()
Message
De
23/07/2004 03:09:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00927285
Message ID:
00927286
Vues:
27
This message has been marked as the solution to the initial question of the thread.
>Hi.
>As File() searches along SET PATH as well what is a simple way to assertain that the file really exists where i am looking for it?
>I was thinking FOPEN(), but...
>Thank you.


Kamil,

There are a couple of ways. One is to test the return of Adir(). Another is api
declare Integer GetFileAttributes in win32api string @ && once
*--------------------------------------------------------------------------
Function	FileExists(FileName)
	return (GetFileAttributes(@m.FileName) <> -1)
endfunc
*--------------------------------------------------------------------------
Gregory
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform