Click or drag to resize

LayoutAddField Method

Creates and appends a new LayoutField to the Layout.

Namespace:  OBCOM.NetClient
Assembly:  OBCOM.NetClient (in OBCOM.NetClient.dll) Version: 40.82.5945.17884 (40.82.5945.17884)
Syntax
public LayoutField AddField(
	FieldType type,
	string name,
	int length,
	int scale,
	string defval
)

Parameters

type
Type: OBCOM.NetClientFieldType
The type of the field.
name
Type: SystemString
The name of the field.
length
Type: SystemInt32
The length of the field.
scale
Type: SystemInt32
The numeric scale of the field.
defval
Type: SystemString
The default value of the field.

Return Value

Type: LayoutField
The created and appended LayoutField.
Remarks
Certain calls to this method must be made in pairs. In particular, if a field of type LIST is added, then this list must be closed (or terminated) adding a field of type LISTEND. This last call does not actually add a LayoutField; it just completes the definition of the list field.
See Also