Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question on File()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01475734
Message ID:
01475751
Vues:
34
>>>>I am troubleshooting a problem that could have been caused by function File() not finding a file in my .EXE. So I have a couple of questions:
>>>>
>>>>1. Does FILE() look inside the .EXE file (just to be sure that this is a valid function to search in .EXE)?
>>>
>>>Yes
>>>
>>>>2. Does FILE() care if the file is in upper case, lower case, or mixed case? (e.g. file( "mYfile.dbf") or file("MYFILE.DBF") etc.)
>>>
>>>No
>>>
>>>>
>>>>TIA
>>
>>Thank you, Boris.
>>
>>If you think of any "circumstance" where FILE() would not find a file in the .EXE, please let me know.
>
>There is no way. Even if you search with full path and have the same file built-in EXE you always will get .t. as a result of the function.
>
>So if you build "TEST.TXT" in EXE and search it like this:
>
>? FILE("c:\MyTestrFoilder\Test.TXT") ---- > .t.
>
>even if there is no such file or folder.

Does .EXE have to be in the PATH or .EXE simply searches through itself even if it is not in the PATH?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform