Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Included file
Message
From
09/11/2007 16:16:45
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01267851
Message ID:
01268133
Views:
16
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]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform