beautypg.com

BrightSign Object Reference Manual (FW 5.1) User Manual

Page 160

background image

152

params[ 1 ] = "/foo/bar/bing/bong"
params[ 2 ] = 10

bindResult = insertStmt.BindByOffset(params)

if bindResult
print "BindByOffset OK"
else
print "BindByOffset FAILED"
end
endif

sqlResult = insertStmt.Run()

print sqlResult

if sqlResult = SQLITE_COMPLETE
print "Table Insertion OK"
else
print "Table Insertion FAILED"
endif

insertStmt.Finalise()

Example: Inserting into a Table in the Background

' This examples assume you have set a message port on your roSqliteDatabase instance