Solved

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

Posted on 1998-03-21
1
233 Views
Last Modified: 2010-05-18
How can i get the number of items in a TComboBox?
0
Comment
Question by:tomerl
1 Comment
 
LVL 2

Accepted Solution

by:
rene100 earned 50 total points
ID: 1360667
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 220
delphi exception 7 64
Working this component WebCopy with proxy, help 3 84
Making delphi communicate with a c# service 16 103
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question