×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2004
    Location
    Budapest, Hungary
    Posts
    18

    How to count items in a Listbox?

    Hi.
    It`s a simple problem, but i can`t find the solution. How can i count the number of items in a ListBox? I dont find any method in the documentation, that would help.

    Thanks.

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    Czech Republic
    Posts
    915
    well, there is no method for this "directly" in CEikListBox. The number of items is related to Model of a listbox so you should get it by method Model() which returns MListBoxModel there it is easy to get it...

  3. #3
    Registered User
    Join Date
    Mar 2004
    Location
    Budapest, Hungary
    Posts
    18
    Thanks! A Listbos->Model()->NumberOfItems() solved the problem. :)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×