DBPUT

Syntax: #DBPUT database-rec value-list
Related: #DBGET

Saves new data to an existing database record. database-rec is the record number to set, with the optional two-character database name appended to it. The value-list is either a database variable, or a series of field names and values for the fields, or of th format "Name1=Value1|Name2=Value2|etc"

DBPUT Examples

#DBPUT 20eq @NewItem

Saves the NewItem database variable into record 20 of the equipment database

#DBPUT 20eq %dbget(21eq)

Copies record 21 of the equipment database over record 20 of the equipment database

#DBPUT 20eq %rec

Sets record 20 of the equipment database to the value of the current database record

#DBPUT 20 Name Zugg Class Warrior

sets the Name and Class fields of record 20 to Zugg and Warrior respectively

#DBPUT 20 {Name=Zugg|Class=Warrior}

sets the Name and Class fields of record 20 to Zugg and Warrior respectively



Contents DBPREV DBRESET