Click or drag to resize

DbServer.SetDataField Method

Assign a DataField object to a specified field.

Namespace:  VO
Assembly:  VORDDClasses (in VORDDClasses.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 desired field.
oDataField (Optional)
Type: Usual
The data field to assign.

Return Value

Type: Usual
TRUE if successful; otherwise, FALSE.
Remarks
The new field is verified to be compatible with the actual database field, if one is open.  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 DBServer Editor uses this method.
See Also