Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Edit - method of object PmDatabase

Description:
Begin of the edit mode.
Syntax:
Edit As Long
Calling:
oDb.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:
VBScriptSelect and copy to clipboard

If oDb.IsOpen() Then
  oDb.MoveFirst
  oDb.Edit
  oDb.FieldValues(0) = 1
  oDb.FieldValues(1) = 12
  oDb.FieldValues(2) = "Text"
  oDb.Update
End If
PROMOTIC 9.0.0 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