Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Included file
Message
De
09/11/2007 16:16:45
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
01267851
Message ID:
01268133
Vues:
17
Hi Borislav,

I thought SYS(2000 always return from disc, not inside the app? My problem simply was that the files I was checking for where could be found via SYS(2000. I guess Sergeys message should solve the problem.

Thanks anyway
Agnes
>>Hi all,
>>
>>how can I determine that a file is inside the app?
>>
>>The file exists inside and outside the app and will be found using FILE() as well as SYS(2000,).
>>
>>Agnes
>
>Try:
>
>TEXT TO lcSTRING NOSHOW
>     LPARAMETERS lcFullFileName
>     RETURN NOT EMPTY(SYS(2000,lcFullFileName))
>ENDTEXT
>IF EXECSCRIPT(lcSTRING,[c:\somefile.txt])
>   ** File Exists
>ELSE
>   ** File Does not Exists
>ENDIF
>
>
>Not tested at all :-)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform