Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FILE() bug
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Titre:
Divers
Thread ID:
00953909
Message ID:
00954054
Vues:
19
Use ADIR(), as Sergey suggested, or SYS(2000).

Note that there is another reason to distinguish between these ways of doing it, and this is by design, not a quirk: FILE() is going to return .T. if it can find the file in your running APP while the other two will not.

Try the following in an EXE where x.dbf is built in and is not anywhere on your disk:
? ADIR(aa,FULLPATH("x.dbf"))
? FILE(FULLPATH("x.dbf"))
? SYS(2000,FULLPATH("x.dbf"))

wait
... FILE()'s behavior is important to the way compiled APPs and EXEs work.

>L<
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform