Subject Re: [IBO] TIB_Grid: Number of selected rows?
Author Jason Wharton
I suggest that you look in the code and see the looping that makes that
booklist.
Then, instead of generating a string list you can perform a count.

It's pretty cheap unless you are caching tens of thousands of records.

Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Mario Zimmermann" <mail@...>
To: <IBObjects@yahoogroups.com>
Sent: Tuesday, March 27, 2001 4:32 AM
Subject: Re: [IBO] TIB_Grid: Number of selected rows?


> --- In IBObjects@y..., Harald Klomann <nibler@t...> wrote:
> > mario.zimmermann@o... wrote:
> > >
> > >
> > > How can I simply determine the number of selected rows?
> > >
> >
> > Mario,
> >
> > i use following code for this :
> >
> > MyStringList.Clear;
> > IB_Query.SelectedBookmarks(MyStringList);
> > if MyStringList.Count >0 then ..........
>
> Yes, that's the way I do it but I think that's a bit oversized :-)
>
> What about performance if lots of rows are selected? To update my
> status bar, I call this function for every click on the grid...
>
> Mario