Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Zap DBF if no error occurs
Message
De
20/05/2005 09:25:21
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
 
À
20/05/2005 09:21:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Divers
Thread ID:
01016146
Message ID:
01016172
Vues:
10
<snip>
Alex,

He's using VFP 6 so TRY ... ENDTRY is not an option. Unless you're suggesting he upgrade? :-)

Regards,
>
>
>Local lError
>Try
>  OPEN DATABASE cFolder2+'\TABLES\ACCOUNT.DBC'
>  USE vouchers EXCLUSIVE
>  ZAP
>  USE VOU_SUM EXCLUSIVE
>  ZAP
>  USE VOU_NO EXCLUSIVE
>  ZAP
>Catch to oErr
>  lError = .T.
>  * you could use oErr exception object information to see what happenned.
>Endtry
>
>If lError
>  MessageBox("Error erasing data")
>  Return .F.
>Endif
>
>
>Note: You do not need to open the DBC Exclusive, just the DBFs.
Jim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform