Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Using BLANK records as new records?
Message
De
22/05/1997 16:17:25
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
21/05/1997 08:34:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00032970
Message ID:
00033330
Vues:
46
/ it will not use the deleted records as the new blank record... will you / look at this code? / thanks again...rob Well, it might need some modifications... since most of the lines were intended for debugging, I wrote a new one, which might work: save_setdel=Set("Deleted") Set Deleted Off && make deleted records visible loca for deleted() if found() recall * this really blanks the record, so it's like Append-ed Blank: blank else append blank endif Set Deleted &save_setdel thisform.grid1.column1.text1.setfocus Wow, this looks good, for a moment I almost wanted to use it myself. On the other hand, it will keep getting slower and slower, once you run out of deleted records and the table gets real big, and... maybe you should check for existence of deleted records upon first time you open the table, or even keep a counter of deleted records, so you don't look for them if there are none. Another way round is to have a tag indexed on deleted(), but it seems like an overkill. Besides, I don't like writing apps where users go on deleting records every once in a while :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform