Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ZAP in VFP .. VB ?
Message
 
À
17/12/1998 02:19:05
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00168377
Message ID:
00168779
Vues:
25
>I know ZAP command in VFP ( to clear all records ) .. but I don't know in VB .. anybody can inform me ?

This command does not depend on the language. It depends of the database you use.

For exemple, major engines (SQL Server, Sybase, Oracle, ...) automatically purge deleted records. When you delete a record, it's gone!!!

If you use Access (and some other database), you have to "compact" your database because there is no way of doing it automatically.

I know that when you have dBase file, you have to send a Zap command. I never have to use it in VB. Which model do you use (DAO, RDO, ADO)? Maybe you can try DBEngine.CompactDatabase command (DAO model).

Tell us if it works or not.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform