Subject | RE: [IBO] Getting a record bookmarked. - ie toggleing its bookmarked state programatically? |
---|---|
Author | Adrian Wreyford |
Post date | 2008-04-06T06:35:25Z |
Thanks Ramil !
Hello Adrian,
You can do it like this:
If IB_Query1.Locate(NameId,.[]) then
IB_Query1.Selected[IB_Query1.RowNum] := True;
My example for inverse seelection:
with SomeQuery do
begin
bm:=Bookmark;
DisableControls;
try
First;
while not Eof do
begin
Selected[RowNum]:=not Selected[RowNum];
Next;
end;
finally
Bookmark:=bm;
EnableControls;
end;
end;
[Non-text portions of this message have been removed]
Hello Adrian,
You can do it like this:
If IB_Query1.Locate(NameId,.[]) then
IB_Query1.Selected[IB_Query1.RowNum] := True;
My example for inverse seelection:
with SomeQuery do
begin
bm:=Bookmark;
DisableControls;
try
First;
while not Eof do
begin
Selected[RowNum]:=not Selected[RowNum];
Next;
end;
finally
Bookmark:=bm;
EnableControls;
end;
end;
[Non-text portions of this message have been removed]