Data.Bind.Components.IScopeRecordEnumeratorEvalShortcut.GetMemberValue

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type:
procedure
function
Visibility: public
Source:
Data.Bind.Components.pas
Data.Bind.Components.hpp
Unit: Data.Bind.Components
Parent: IScopeRecordEnumeratorEvalShortcut

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 System::NativeInt ATypes_High, /* out */ System::Rtti::TValue &AValue) = 0 /* overload */;

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