Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - Using BLANK records as new records?
Message
From
22/05/1997 16:17:25
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
21/05/1997 08:34:26
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00032970
Message ID:
00033330
Views:
48
/ 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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform