Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is RECALL the only way to undelete records?
Message
 
 
À
11/12/1998 15:38:46
Donny Sims
Independent Computer Consultants Inc
Scottsboro, Alabama, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00166709
Message ID:
00166904
Vues:
19
>>Researching an update problem. Just wondering if RECALL is the only way that a deleted record can become undeleted?
>>
>>Thanks
>>
>>Brenda

>Brenda

>RECALL is the only way to programmaticlly change the delete marker on a record in place. Now to explain the qualifiers in that sentence, 'programmatically' because a user may toggle the delete marker in either an edit or browse window or may use the recall dialog box or memu option, 'in place' because if COPY TO or SORT ON is used with SET DELETED OFF then the deleted records are copied but the delete marker is not. You may wonder why COPY TO is an issue, many times (especially in older code) in order to and gain some performance you will find tables reordered to match their primary index. To rearrange the table it was indexed and copied or sorted to a temp file, the original was then either zaped and appended from the temp file or erased and the temp file renamed to the original. This may seem like a lot of trouble, but when you learn to database on a 8086 with duel floppy drives you learn to take every advantage you can get.

>Good Luck

>Donny

Ran a little example using SORT ON, and COPY TO. If 'SET DELETED ON', only the undeleted records were copied. If 'SET DELETED OFF', all records were copied, and deleted records were marked as deleted. I could not get these two commands to remove the deleted mark. Is there something I am missing?

Brenda
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform