Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with the File Command
Message
De
28/01/2002 04:54:59
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/01/2002 04:35:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00611357
Message ID:
00611402
Vues:
28
>DEFINE CLASS TestFile as custom
>
>cFileName =''
>
> PROCEDURE IsFileFound
>
> IF FILE(This.cFileName) = .T.
> messagebox ( 'Found')
> ELSE
> messagebox ('Not Found')
> ENDIF
>
>
>ENDPROC
>
>oFile = CREATEOBJECT('testfile')
>oFile.cFileName = 'A:\data.dbf'
>oFile.isFileFound

Nicholas,
File is not trustable everytime. Especially when it's a removable or network device and device not ready, file you serach exists in your search path you get .t.
Use adir() instead.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform