?
Solved

Counting items in a listbox

Posted on 1998-03-04
4
Medium Priority
?
324 Views
Last Modified: 2010-04-06
My listbox loads from a file (LoadFromFile) of strings each time the form is activated because the items can change quite often.

I want to display how many items there are in the listbox, i.e. perform a count of items in it.
0
Comment
Question by:jsweby
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 

Expert Comment

by:jpussacq
ID: 1360071
Items.Count
0
 
LVL 4

Author Comment

by:jsweby
ID: 1360072
Well that was easier than I expected!
Thanks.
0
 

Accepted Solution

by:
jpussacq earned 60 total points
ID: 1360073
Items.Count
0
 

Expert Comment

by:SAMEH_MAX
ID: 1360074
WHEN THE FORM IS ACTIVATED (EVENT),
THE CODE IS: LISTBOX1.ITEMS.COUNT;
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

764 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