Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if file exists only in a particular place
Message
De
06/10/2007 19:23:08
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
05/10/2007 17:33:48
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01258744
Message ID:
01259211
Vues:
21
>>>>>I was refering to yours modification. However Cetin's code has the same probem. It'll check if file 'EMPS.exe' exists anywhere along VFP search path. To check for a file in specific location, you can use SYS(2000) or ADIR()
>>>>
>>>>Tssk tssk:) I think you made a typo.
>>>>
>>>>lcFileName = "AlocalFile.txt"
>>>>STRTOFILE("Are you sure?",m.lcfileName)
>>>>
>>>>? "Exists in search path",;
>>>> FILE(m.lcfileName)
>>>>? "Exists in the same folder where exe is",;
>>>> FILE(forcepath(m.lcFileName,justpath(application.servername)))
>>>>
>>>>ERASE (m.lcFileName)
>>>>
Cetin
>>>
>>>Ok, you two take it to the street, but which one is the one to use? They both work, right? Why did Sergey think I needed to use SYS(2000) to handle it?
>>
>>I think he glaced at but didn't read:)
>>Don't worry we don't "take it to the street", just remind eachother.
>>Cetin
>
>Didn't really care about his inability to read, but is one better to use than the other?

No. In this case file(...) and !empty(sys(2000), ...) are doing the same thing. Toss a coin and choose one.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform