Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR and read only folders
Message
 
To
06/09/2005 17:12:59
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01047169
Message ID:
01047183
Views:
16
The users tell me they have been exporting happily for several months (the same EXE has been in production since March). All of a sudden every folder on the network and the user's hard drive return an R as the...

what does the ADIR look like?


You are using VFP8, So You could in fact use TRY... CATCH to come over it whatever reason there is (and it would protect You from other error-sources like Disk full). Something like this
lcOutFile = Putfile(..)

if !...
endif

llSuccess = .T.

TRY
    copy to (lcOutFile) type XL5

CATCH to loError

    *-- deal with the error here, Messagebox or whatever
    llSuccess = .F.

ENDTRY


if ! llSuccess
    *-- maybe some additional stuff here

endif
Regards from Berlin

Frank

Dietrich Datentechnik (Berlin)
Softwarekombinat Teltow (Teltow)

Frank.Dietrich@dd-tech.de
DFPUG # 327
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform