• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

How can i get the number of items in a TComboBox?

How can i get the number of items in a TComboBox?
0
tomerl
Asked:
tomerl
1 Solution
 
rene100Commented:
hi tomerl

TComboBox stores the data in a TStrings object, so you can get
the number of items with ComboBoxName.items.count
if you want to get through all items, use:
for Index:=0 to ComboBoxName.items.count-1 do
    begin
    ....
    ...
    end;
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now