Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Add - method of the PmaDatabase object

Description:
Specifies the begin of the edit mode for adding a new record into the database table
Syntax:
Long Add()
Note:
After calling the method it is possible to call any method for modification of the new created table record. 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.FieldValues(0) = 1;
oDb.FieldValues(1) = 12;
oDb.FieldValues(2) = "Text";
oDb.Update();
}
PROMOTIC 9.0.13 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice