Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Edit - method of object PmDatabase

Description:
Determine the begin of the edit database table 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:
If oDb.IsOpen Then
  oDb.MoveFirst
  oDb.Edit
  oDb.FieldValues(0)= 1
  oDb.FieldValues(1)= 12
  oDb.FieldValues(2)= "Text"
  oDb.Update
End If
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice