Gets a row from the page as a table.
Definition
Table Get (int index)
Arguments
int index
The row of the page to grab. Starts at 0, not 1 like Lua arrays.
Returns
Returns a table with one field per a column. Each field's key is the associated column name. Returns nothing if the row at the index was never set.
Example
local myPage = Page.New("myPage", 32, { Page.Type.String ("Name", 64), Page.Type.Number "Score", Page.Type.Bool "IsBanned", }) myPage:Set(0, { Name = "Joe", Score = 0, IsBanned = true, }) local row = myPage:Get(0) print(row.Name) print(row.Score) print(row.IsBanned)