Subject | Re: [IBO] TIB_Grid RowSelect retrieve list of selected values |
---|---|
Author | Dmitry Beloshistov |
Post date | 2004-06-29T09:50:48Z |
Hello, radevojvodic!
You wrote to <IBObjects@yahoogroups.com> on Tue, 29 Jun 2004 09:36:44 -0000:
r> Does anyone know how to retrieve a list of selected rows in a
r> TIB_Grid.
May be this can help you?
var
tmpCol: TIB_Column;
begin
...
tmpCol := Query.BufferFieldByName('MyField');
Query.BeginBusy( false );
try
Query.BufferFirst;
While not Query.BufferEOF do
begin
if Query.Selected[Query.BufferRowNum] then StringList.Add(tmpCol.AsString )
Query.BufferNext;
end; // while
finally Query.EndBusy; end;
......
end;
WBR, Dmitry Beloshistov AKA [-=BDS=-]
You wrote to <IBObjects@yahoogroups.com> on Tue, 29 Jun 2004 09:36:44 -0000:
r> Does anyone know how to retrieve a list of selected rows in a
r> TIB_Grid.
May be this can help you?
var
tmpCol: TIB_Column;
begin
...
tmpCol := Query.BufferFieldByName('MyField');
Query.BeginBusy( false );
try
Query.BufferFirst;
While not Query.BufferEOF do
begin
if Query.Selected[Query.BufferRowNum] then StringList.Add(tmpCol.AsString )
Query.BufferNext;
end; // while
finally Query.EndBusy; end;
......
end;
WBR, Dmitry Beloshistov AKA [-=BDS=-]