From ba76e2efe6eee9c38822c935c1ecf598ed3f0747 Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 3 Oct 2008 19:08:11 -0700 Subject: One last example with nextrow --- lib/dblib.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dblib.lua b/lib/dblib.lua index e9da88a..d11e1ff 100644 --- a/lib/dblib.lua +++ b/lib/dblib.lua @@ -60,6 +60,8 @@ t:restrict() -- WHERE 1 t:select() print(t:numrows()) -- prints "4" print(t:numfields()) -- prints "3" +row = t:nextrow() +print(row.field1) -- prints "test1" ]]-- -- cgit v1.2.3