MyDAC

TCustomDADataSet.GetFieldObject Method

Returns a multireference shared object from field.

Class

TCustomDADataSet

Syntax

function GetFieldObject(Field: TField): TSharedObject; overload;function GetFieldObject(Field: TField; RecBuf: TRecordBuffer): TSharedObject; overload;function GetFieldObject(FieldDesc: TFieldDesc): TSharedObject; overload;function GetFieldObject(FieldDesc: TFieldDesc; RecBuf: TRecordBuffer): TSharedObject; overload;function GetFieldObject(const FieldName: string): TSharedObject; overload;

Parameters
FieldName
Holds the field name.
Return Value
multireference shared object.

Remarks

Call the GetFieldObject method to return a multireference shared object from field. If field does not hold one of the TSharedObject descendants, GetFieldObject raises an exception.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback