Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Edit - method of the PmaDatabase object

Description:
Begin 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 in the database table by the Update method. This practice with the database table is quicker than repeated calling the method without creation of the edit mode.
Example:
JavaScriptVBScriptSelect and copy to clipboard

if (oDb.IsOpen())
{
oDb.MoveFirst();
oDb.Edit();
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