Click or drag to resize

DataServer.SetDataField Method

Assign a DataField object to a specified field in this data server.

Namespace:  VO
Assembly:  VOSystemClasses (in VOSystemClasses.dll) Version: 2.7
Syntax
 VIRTUAL METHOD SetDataField(
	nFieldPosition AS USUAL := NIL,
	oDataField AS USUAL := NIL
) AS USUAL
Request Example View Source

Parameters

nFieldPosition (Optional)
Type: Usual
The number of the data field.
oDataField (Optional)
Type: Usual
The data field to be assigned.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
The data type of the new field must be compatible with the actual database field. This method is normally used only during instantiation of a data server (most often in Init() methods of subclasses).  For example, the code generated by the data server editors use this method.
See Also