Another way is to reuse the deleted records. In few words : to delete a record, I transform the (integer) key value to the negative one (mykey = -ABS(mykey)). When I have a record to add, I lookfor the first record with a negative key. If FOUND() I replace the data and the key with the new ones; if not, I add the record.

My primary key is "mykey FOR mykey>0"

HTH
The Foxil


_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/55728e9e.7070...@wanadoo.fr
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to