AddTransField method

Applies to  

Example

Description

Creates a new empty transaction field Object, TransField, at the specified FieldNo position in the form (or set) definition’s standard transaction description. FieldNo 1 is the first transaction field.

The returned TransField object can be modified by changing the properties for the TransField object.

Syntax

[ReturnObject =] Object.AddTransField(FieldNo)

Part

Data type

Description

Object

Object

An object expression that evaluates to an object in the Applies To list.

FieldNo

Integer

If FieldNo is set to 0, the TransField is added as the first field. If FieldNo is less than 0 (for example -1), or if it is larger than the current number of transaction fields in the transaction description, the new field is added last.

Settings

Return value

Data type: TransField (Object)

Remarks

This method is the only way to obtain TransField objects. Note that the method is only useful in the Manager module since it is the only place where the FormDef can be saved to the database.

Classic method

AddTransFieldAt