Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FILE() sees file contained in app while watch window doe
Message
De
18/11/2004 14:19:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
18/11/2004 12:10:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
00962707
Message ID:
00962764
Vues:
6
>An app uses FILE(lcFile) to determine if a particular routine is contained in the app/exe or must be searched for elsewhere.
>
>While tracing, IF FILE(lcFile) succeeds, but FILE(lcFile) shows false in the watch window.
>
>In some sense this is logical, because the app environment is slightly different from that of the developer, but it had us very confused.
>
>Is this a bug of how the watch window works?
>
>TIA,
>
>Alex

I am not sure whether it should be considered a bug, but I have seen some suggestions, to use adir() instead of file(), to check whether the file is really in a specific directory. I think file() will simply return whether the file was found, whether it is in the current directory, along the search path, or within the executable. Or something like that.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform