Subject Edit after insert/post
Author stewartbourke@eircom.net
This may not be an IBO-specific question but I am a bit confused as
to how IBO behaves after a record has been posted.

If I do the following:

table1.open;
table1.insert;
...
assign various field values here
...
...
table1.post;
...
table1.edit;
...
change field values
...
table1.post;

After the second post I get an exception 'record not found for update'

My understanding was that after the insert, the current record
pointer was on the record just posted so a call to table1.edit would
place the record I have just edited into edit mode - thus allowing me
update the contents of the record. However, this error would seem to
point to this not being the case.

Would anybody be able to explain what actually happens after and
insert and what is the correct way to carry out this type of
operation.

Thanks,

Stewart Bourke