Promotic
Login logon

Add - method of the PmaDatabase object

Description:
Specifies the beginning of the edit mode for adding a new record into the database table
Syntax:
Long Add()
Note:
After calling the method any method can be called for modification of the new created table row. Hereby a buffer of new record is prepared that is consequently written by the Update method into the database table. Contrary to the AddNew method this method serves for adding already initialized record into the database table.
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (oDb.IsOpen())
{
oDb.Add();
oDb.WriteFieldValue(0, 1);
oDb.WriteFieldValue(1, 12);
oDb.WriteFieldValue(2, "Text");
oDb.Update();
}
PROMOTIC 9.0.34 SCADA system documentation MICROSYS, spol. s r.o.

Send page remark Contact responsible person
© MICROSYS, spol. s r.o.Update cookies preferences