Subject RE: [IBO] Re: invalidate active record in a master/detail relationship
Author Jason Wharton
Ed,
 
Yes, there was some odd transitioning in DB.pas regarding the Bookmark property.
 
What version of IBO are you using?
 
Does this work for you?
 
dsqClients.InvalidateBookmark( dsqClients.Bookmark );
 
Jason Wharton
 


From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]
Sent: Wednesday, July 17, 2019 8:51 AM
To: IBObjects@yahoogroups.com
Subject: [IBO] Re: invalidate active record in a master/detail relationship

Argh.... this is strong. Here is my code, where dsqClients is a TIBOQuery (note I wasn't in charge of naming it):

var
  lbm: TBookmark;
begin
    lbm := dsqClients.GetBookmark;
    dsqClients.InvalidateBookmark(lbm);
    dsqClients.FreeBookmark(lbm);
end;

Yet the compiler balks at 

    dsqClients.InvalidateBookmark(lbm);

It wants an AnsiString. How should I write this?

Ed Dressel