Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR and read only folders
Message
 
À
06/09/2005 17:12:59
Tim Muller
Innovative Solutions, Inc.
West New York, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01047169
Message ID:
01047183
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform