realbasic-nug
[Top] [All Lists]

Re: Counting items in a list box?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Counting items in a list box?
From: Will Leshner <leshner at ljug dot com>
Date: Wed, 30 Jul 2003 13:54:53 -0700
Probably using an "if" statement:

if listbox.Cell(x,0) = "hello" then
        helloCount = helloCount + 1
end if

That will count all the rows where column one is "hello".

Daniel Lee wrote:

I know how to loop through and count all of the records, but how do I only
count the records that meet a certain criteria?





---
A searchable archive of this list is available at:
<http://support.realsoftware.com/listarchives/search.php>

Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>
.


<Prev in Thread] Current Thread [Next in Thread>