Click or drag to resize

DataServer.SetDataField Method (Typed)

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

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOSystemClasses (in XSharp.VOSystemClasses.dll) Version: 2.19
Syntax
 VIRTUAL METHOD SetDataField(
	nFieldPosition AS DWORD,
	oDataField AS DataField
) AS LOGIC
Request Example View Source

Parameters

nFieldPosition
Type: DWord
The number of the data field.
oDataField
Type: DataField
The data field to be assigned.

Return Value

Type: Logic
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