Datatable
Obiectul datatable este un set de obiecte datarow derivate din citirea unui sir SQL in baza de date deschisa in prezent.
table = database.getsql("SELECT * FROM customers WHERE nation =’italy’")
nrows = table.countrows()
rows = table.getrows()
for i = 1, nrows do
customername = rows[i].getvalue("name")
output.print(customername)
end
*value* = *datatable*.countrows()
*value* = *datatable*.countrows()
Reda numarul actual de randuri.
*value* = *datatable*.getrows()
*value* = *datatable*.getrows()
Reda lista de randuri ca si obiecte datarow.
*datarow* = *datatable*.adddatarow()
*datarow* = *datatable*.adddatarow()
Adauga un nou rand la datatable.