PdcDBTable.EditRecord
Jump to navigation
Jump to search
Declaration
EditRecord as Boolean
Description
Returns true or false whether the current record could be set in 'edit' modus
Notes
This method will enable the record for editing. When this method is not used, the record in the table can not be changed.
Code example
This code example edits the text of calculation 00001 in de database.
Dim objTable
Set objTable = pdc.Database.OpenTable(pdcConData, "DO_CALC","DO_ORDNR")
if IsValid(objTable) then
if objTable.Locate("DO_ORDNR", "00001") then
if objTable.EditRecord then
objTable.SetField "DO_TEXT", "Aangemaakt door script"
objTable.PostRecord
end if
end if
end if
set objTable = nothing
Availability
Available since June 2008 (from version 3.8)