Re: clist question



On Thursday 10 May 2001 21:44, Ken Huisman wrote:
+--->
| Hi everyone,
| is there a way to get the total number of rows of data
| in your clist?
| another question: when do the "add" and "remove" signals
| (gtkcontainer) get triggered on a clist?
| thanks.
| Ken
+--->


So, I answer on it:

   Hello, Ken!
Something like this (untested):

my $ctxt="";
my $cidx=0;
while (!$ctxt) {
        $ctxt=$clist->get_text($cidx,0);
        defined($ctxt) ne "" ? $cidx++ : last;
}
print "We have $cidx items in \$clist\n";

--
./bo
"Dying is a very dull, dreary affair.  And my advice to you is to have
nothing whatever to do with it."
                -- W. Somerset Maugham

[ Fetched at: Fri May 11 10:02:20 EET 2001 ]





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]