Subject Re: [IBO] Edit after insert/post
Author Patrick Lenz
Did you somehow commit your transaction ?
If you did commitretaining, you should be on the same record.
Patrick
----- Original Message -----
From: stewartbourke@...
To: IBObjects@yahoogroups.com
Sent: Wednesday, February 14, 2001 9:42 AM
Subject: [IBO] Edit after insert/post


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






Yahoo! Groups Sponsor

www.






[Non-text portions of this message have been removed]