Board index » delphi » count items in listbox

count items in listbox

Listbox1.Items.Count

Regards
Anders Christensen
ander...@post4.tele.dk

Joseph Kasser <jkas...@polaris.umuc.edu> skrev i artiklen
<5u24eu$...@nova.umuc.edu>...

Quote
> What property gives the number of items in a listbox? I can't seem to
> find
> it in the documentation.

 

Re:count items in listbox


 Try this, if your listbox is called:  lstbox, the number of items in it is:

lstbox.items.count;

Items is a Tstrings object.

Hope this helps.

Max

                  ///
                / ^ \         Downey Communications Inc.
               ( o-o )        Programmer/Analyst
---oOOO--(_)--OOOo------------------------------------------

    .oooO               'OOPS...'
    (   )   Oooo.
-----\ (----(   ) ------------------------------------------
      \_)    ) /
            (_/     Allen A. Maxwell
        email:      aa...@sprynet.com
        snail Mail: 649 Hollywood Ave.
                    Salt Lake City, Ut. 84105
        voice:      801 486-7208

Joseph Kasser wrote in article <5u24eu$...@nova.umuc.edu>...

Quote
>What property gives the number of items in a listbox? I can't seem to
>find
>it in the documentation.

>Thanks

>Joe Kasser

Other Threads