Data.Bind.Components.IScopeRecordEnumeratorEvalShortcut.GetMemberValue

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetMemberValue(const AMemberName: string;  const AType: TScopeMemberType;  const ACallback: TValueCallback); overload;
function GetMemberValue(const AMemberName: string; const ATypes: array of TScopeMemberType; out AValue: TValue): Boolean; overload;

C++

virtual void __fastcall GetMemberValue(const System::UnicodeString AMemberName, const TScopeMemberType AType, const _di_TValueCallback ACallback) = 0 /* overload */;
virtual bool __fastcall GetMemberValue(const System::UnicodeString AMemberName, const TScopeMemberType *ATypes, const int ATypes_High, /* out */ System::Rtti::TValue &AValue) = 0 /* overload */;

Properties

Type Visibility Source Unit Parent
procedure
function
public
Data.Bind.Components.pas
Data.Bind.Components.hpp
Data.Bind.Components IScopeRecordEnumeratorEvalShortcut

Description

Gets the value of the specified member using the specified type.

If you specify a single type (AType) and a callback (ACallback), the specified callback receives the following parameters:

  • AValue is the value of the specified member as a TValue.
  • AType is the type used to format the value. It is usually the same as the AType that you pass to GetMemberValue, but it does not have to be.

If you specify multiple types (ATypes) and an output TValue (AValue), GetMemberValue fills AValue with the value of the specified member in the first of the specified types that can be used to format the value.

You can call CanGetMemberValue before you call GetMemberValue to ensure that you get a result.

See Also