PdcDBTable.GetField

From External Bemet Wiki
Jump to navigation Jump to search

Declaration

GetField(FieldName as String) as Variant

Description

Returns the value of the supplied fieldname of the current record

Notes

This function returns the value of the given field.

Code example

This code example shows the production number of calculation 00001 in a message box.

Dim objTable

Set objTable = pdc.Database.OpenTable(pdcConData, "DO_CALC","DO_ORDNR")
if IsValid(objTable) then
   if objTable.Locate("DO_ORDNR", "00001") then
      msgbox objTable.GetField("DO_PRODNR")
   end if
end if
set objTable = nothing

Availability

Available since June 2008 (from version 3.8)