SIMPOL Documentation

getfieldid()

Description

Given a *.sbm file, a field name, and a table ID – see gettableid() – this function will return the field ID in the system tables for that table. If the field name is not present it will return .nul and an error code in the error parameter.

Prototype

getfieldid ( type(db1base) sbmfile, integer tableid, string fieldname, integer error )

Parameters

ParameterDefault valueType nameDescription
sbmfileNonetype(db1base)
tableidNoneinteger
fieldnameNonestring
errorNoneinteger