Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem deleting a record in an open table..
Message
 
 
À
22/11/2006 20:07:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01171965
Message ID:
01171967
Vues:
7
It's overkill to PACK a table after each delete. It should be done as maintanance operation not as a part of application regular run. Use SET DELETE ON to make deleted records "invisible" for your application. Keep in mind that SET DELETE ON is scooped to the current datasession.


>I've always had problems deleting a record from an open table.
>
>Here's the code:
>
>
>dele
>gfile=juststem(dbf())
>use in &gfile
>use &gfile in 0 alias gfile exclusive
>select gfile
>pack
>use
>
>
>And I get error file is in use in the 4th line. *sigh*
>
>Help pls.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform