Click or drag to resize

DbServer.SetDataField Method (Typed)

X#
Assign a DataField object to a specified field.

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

Return Value

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