Link to home
Start Free TrialLog in
Avatar of hidrau
hidrauFlag for Brazil

asked on

ListBox, how to?

Hello Guys,

I need a clue how to do something like this:

I have a lisbox on my form with 20 lines, some lines are painted in color font clRed and other clblack.

How can I count how many lines I have in my listbox in clred color font?

Thanks
Alex
ASKER CERTIFIED SOLUTION
Avatar of Sinisa Vuk
Sinisa Vuk
Flag of Croatia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
How did the items become red? Probably because you painted them red? From what information did you decide to make them red? Can't you look in that information to count?
or the other way around:

how did you paint them black > the_number_of_blacks
to find the reds: listbox.count - the_number_of_blacks
Avatar of hidrau

ASKER

thanks for the idea :)