Subject | Re: [IBO] Selected rows in a TIB_Grid |
---|---|
Author | Adrián Deccico |
Post date | 2004-12-19T15:31:13Z |
Solved,
TStringList *slFacturas = new TStringList;
try{
tbl->SelectedBookmarks(slFacturas);
tbl->BeginBusy( False );
for (int i=0; i < slFacturas->Count; i++){
tbl->Bookmark = slFacturas->Strings[i];
ShowMessage(tbl->FieldByName("NRO")->Value);
}
}
__finally{
tbl->EndBusy();
delete slFacturas;
}
TStringList *slFacturas = new TStringList;
try{
tbl->SelectedBookmarks(slFacturas);
tbl->BeginBusy( False );
for (int i=0; i < slFacturas->Count; i++){
tbl->Bookmark = slFacturas->Strings[i];
ShowMessage(tbl->FieldByName("NRO")->Value);
}
}
__finally{
tbl->EndBusy();
delete slFacturas;
}
On Sun, 19 Dec 2004 11:22:08 -0300, Adrián Deccico <deccico@...> wrote:
> Thanks Hellen, I get the correct number of selected items but I don't
> know how I can get the fields of the selected rows.
>
> I get values like "000090000000" that doen't match any of the field's rows
>
> best regards
>
>
> On Sun, 19 Dec 2004 11:15:06 +1100, Helen Borrie <helebor@...> wrote:
> >
> > At 03:06 PM 18/12/2004 -0300, you wrote:
> >
> > >Hi,
> > >
> > >I want to rescue a field value of all the selected rows (with the ctrl
> > >key) of a TIB_Grid
> > >
> > >What properties should I use to iterate through all the rows of a
> > >TIB_GRID and to know if they are selected or not.
> >
> > Operate on the ib_query and refer to its SelectedBookmarks property.
> >
> > Helen
> >
> >
> > ___________________________________________________________________________
> > IB Objects - direct, complete, custom connectivity to Firebird or InterBase
> > without the need for BDE, ODBC or any other layer.
> > ___________________________________________________________________________
> > http://www.ibobjects.com - your IBO community resource for Tech Info papers,
> > keyword-searchable FAQ, community code contributions and more !
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
>
>
> --
> atte
>
> Adrián Deccico
>
> http://adrian.org.ar
>
--
atte
Adrián Deccico
http://adrian.org.ar