Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
No Zap...No Pack ??
Message
 
À
27/11/2001 22:06:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00586764
Message ID:
00586767
Vues:
17
>Is there a way to recycle deleted records?
>
>If so then that might preclude the need to zap or pack (or other workarounds)
>
>TIA
>Jere Dorough

You can, but you have to do it yourself.
Something along the lines of
cDel= SET('DELETED')
SET DELETED OFF
LOCATE FOR DELETED()
IF FOUND()
    * Recycle this record
    BLANK()
    RECALL()
ELSE
    * No deleted, so create new
    APPEND BLANK
ENDIF
SET DELETED (m.cDel)
I havnt tested the above code, but I know it is something like that, might need to add some more security etc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform