hidrau
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
how did you paint them black > the_number_of_blacks
to find the reds: listbox.count - the_number_of_blacks
ASKER
thanks for the idea :)