[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: finding out number of records in a table??
- From: "Aaron Brown" <arundelo@...>
- Date: Tue, 12 Sep 2006 09:47:24 -0400
Leo Razoumov wrote:
How can one easily find out the number of records stored
in a table? I think that there should be a convenient
idiom for such a common task.
As lhf pointed out, it's surprisingly uncommon (given what a
basic idea it is). Here's how to do it:
local Count = 0
for _ in pairs(Tbl) do Count = Count + 1 end