home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Black Box 4
/
BlackBox.cdr
/
progc
/
c_all592.arj
/
TI1003.ASC
< prev
next >
Wrap
Text File
|
1992-04-29
|
2KB
|
67 lines
PRODUCT : Paradox Engine NUMBER : 1003
VERSION : All
OS : All
DATE : April 29, 1992 PAGE : 1/1
TITLE : Error #50--Another user deleted record
This message describes normal behavior for the Engine. Whenever
you have a table open more than once, it is often equivalent to
having more than one 'user' for that table. For each
tablehandle, you have a 'cursor' which indicates the current
position in the database. If you open a table on one index and
somehow cause a record to be deleted, and the cursor for the
other opening of the table pointed to this record that was
deleted, it now will point to a record that does not exist.
Whenever you try to do anything with this table, the Engine will
inform you that another 'user' deleted this record--Error #50.
This really is an information message, not an error.
Should this situation occur, you need to reposition the cursor.
Create an algorithm to do so that will take into account various
situations, for example, tables without any records left, delete
at beginning of table, end of table, etc. One additional
strategy is to insert a null record in the table at position 1
and then position to that record.
In summary, take care when opening tables multiple times and
handle error/status messages appropriately. Also, remember that
doing a PXRecUpdate() on a keyed table and changing the keyed
fields of a table results in the deletion and readdition of that
particular record.