Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Different behaviour EXE vs. Prog Env.
Message
 
 
À
08/06/2004 18:40:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00911444
Message ID:
00911452
Vues:
11
Don,

Did you include kill.txt in the project, by any chance? It will be found in the EXE regardless of the path specified.

>The following code returns a .F. when run in the programming environment and a .T. when run from within an EXE. Any clues as to why this would be the case? The correct answer is .F..
>
>fileloc = "\\fileserver\data"
>if file(fileloc + '\kill.txt')
>* do something
>endif
>
>the code in question is used in a timer event to shutdown the program if the file is found. It works fine when run from the programming environment but always returns true when run from the EXE. What am I missing?
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform