Subject | Re: [IBO] Howto iterate through all selected rows |
---|---|
Author | Lucas Franzen |
Post date | 2001-11-22T11:52:34Z |
Lucas Franzen schrieb:
(sorry, forgot that)
Luc.
>sl.Free; <<<<<<<< ups!
> procedure AllSelectRows;
> var
> sl: TStringList;
> ii: Integer;
> begin
> sl := TStringList.Create;
> with myQry do
> begin
> SelectedBookmarks ( sl ); // Get all List of Selected Records
> (Bookmarks)
> for II := 0 to sl.Count - 1 do
> begin
> BufferBookmark := sl[ii];
>
> // do whatever you want with the current Record now ....
> ShowMessage ( 'SELECTED ID = ' + BufferFieldbyName ( 'ID_FIELD'
> ).AsString );
> end;
> end;
> end;and maybe it would be a good idea to Free the StringList afterwards *g*
>
> Luc.
(sorry, forgot that)
Luc.