DictField.new Method
Initializes a new instance of the Object class.
Syntax
public void new(
TableId tableId,
FieldId fieldId,
[int arrayIndex])
Run On
Called
Parameters
- tableId
Type: TableId Extended Data Type
The ID of the table that is used to create the instance of the DictField class.
- fieldId
Type: FieldId Extended Data Type
The ID of the field that is used to create the instance of the DictField class.
- arrayIndex
Type: int
Examples
The following example shows how to create an instance of the DictField class.
DictField df;
df = new DictField(tablenum(CustTable), fieldnum(CustTable, AccountNum));
// Check df for successful creation before proceeding.
if (!df)
{
// Take error action.
}