function sumdigits(str)
local sTotal = 0
for i=1,#str do
sTotal = sTotal + tonumber(string.sub(str, i,i))
end
tTotal = sTotal
return tTotal
end
sumdigits(Input.GetText("Input1"))
Dialog.Message("Notice", tTotal, MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
SQLIte.QueryToTable(db, "SELECT SUM(cantidad) FROM sollados WHERE nombre LIKE '%GER' AND espesor = '22' ");