Subject Re: [IBO] TIB_Grid RowSelect retrieve list of selected values
Author Dmitry Beloshistov
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=-]