Subject | Unable to delete detail record |
---|---|
Author | Ed Dressel |
Post date | 2005-04-15T20:59:12Z |
I have a M/D relationship setup with some IBO queries and when I try
to delete a record in the detail dataset I get the following exception:
"Invalid reference to Delete."
I added a DeleteSQL to the Query with no success. I traced it down to
here:
procedure TIB_NodeList.CurrentDelete;
begin
if IsEmpty or CurEof or CurBof then
raise Exception.Create( E_Invalid_Reference_To_Delete );
DeleteNode( CurRef.Node );
end;
where IsEmpty is true--I am not sure why. What might I be doing wrong?
Thanks
Ed Dressel
to delete a record in the detail dataset I get the following exception:
"Invalid reference to Delete."
I added a DeleteSQL to the Query with no success. I traced it down to
here:
procedure TIB_NodeList.CurrentDelete;
begin
if IsEmpty or CurEof or CurBof then
raise Exception.Create( E_Invalid_Reference_To_Delete );
DeleteNode( CurRef.Node );
end;
where IsEmpty is true--I am not sure why. What might I be doing wrong?
Thanks
Ed Dressel