Promotic

Edit - method of the PmaDatabase object

Description:
Beginning of the edit mode.
Syntax:
Long Edit()
Note:
Before calling the method the pointer position must be set to the valid row of the database table (Move, FindPrev methods, etc.). After calling the method any method that modifies the table row, can be called. Thereby the data buffer is sequentially prepared that is written into the database table by the Update method. This practice with the database table is quicker than repeated calling the methods without creation of the edit mode.
Example:
JavaScriptVBScriptSelect and copy to clipboard

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

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.