Sets a row on a page.
Definition
void Set (int index, Table row)
Arguments
int index
The row of the page to grab. Starts at 0, not 1 like Lua arrays.Table row
A Lua table with keys corresponding to column names.
Returns
No return values.
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)