DBINSERT(dbName as Database, dbKey as anyVarType, varlist)
Description
To insert a new record into the database with the given key. All of the variables in varlist are written into the new record. Records cannot exist that duplicate a key, so insert of a record with a key that already exists returns an error. dbKey must be a variable: it cannot be an expression. The database must have been previously opened with DBOPEN. Returns an integer result. See DBOPEN for a table of result codes.
Example
Dim res as Integer
Res=DbInsert(CustomerDb, "998", custName, custAddress, custPhone)