ODAC

TOraObject.AttrAsObject Property(Indexer)

Used to read the attribute's data value as TOraObject, or to assign a TOraObject value to the contents of an attribute.

Class

TOraObject

Syntax

property AttrAsObject[const Name: string]: TOraObject;

Parameters
Name
Holds an attribute name.

Remarks

Use the AttrAsObject property to read the attribute's data value as TOraObject, or to assign a TOraObject value to the contents of an attribute. Type of an attribute specified by the Name parameter must be Object. You can use AttrAs... properties to access its attributes after.

Another way to get an attribute value of a nested object is using of the name path.

Example

Example 1.
Street1 := MyObject.AttrAsObject('Address').AsString('Street');

Example 1.
Street2 := MyObject.AttrAsString('Address.Street'); 

See Also

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