Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Add - method of object PmDatabase

Description:
It defines the begin of the edit mode for adding a new record into the database table
Syntax:
Add As Long
Calling:
oDb.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. Unlike the AddNew method this method serves for adding already initialized record into the database table.
Example:
If oDb.IsOpen Then
  oDb.Add
  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