Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Zap DBF if no error occurs
Message
 
 
À
20/05/2005 07:21:06
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:
01016309
Vues:
8
Tariq,

You need to reorder the other solutions so far, because you should USE all 3 dbfs first and if that succeeds proceed with the zap
USE vouchers in 0 exclusive
USE VOU_SUM in 0 exclusive
USE VOU_NO in 0 exclusive
if the error handler doesn't kick you out:
select vouchers
zap
select VOU_SUM
zap
select VOU_NO
zap
>I want to zap following three dbf's, if no error occurs.
>I mean if database not found or any dbf is corrupt then EXIT.
>In other case, if database found and dbf's are OK then given dbf's should ZAP.
>
>CLOSE ALL
>CLOSE DATABASES ALL
>OPEN DATABASE cFolder2+'\TABLES\ACCOUNT.DBC' EXCLUSIVE
>USE vouchers
>ZAP
>USE VOU_SUM
>ZAP
>USE VOU_NO
>ZAP
>
>Thanks in advance
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform