System.TVarRec

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

TVarRec = record { do not pack this record; it is compiler-generated }

C++

class TVarRec

プロパティ

種類 可視性 ソース ユニット
record
struct
public
System.pas
systvar.h
System System

説明

TVarRec は、型なしの配列パラメータを持つ関数の内部で使用されます。

TVarRec 型は、Delphi の const の配列のパラメータ型を持つ関数の内部で使用されます。Delphi では、コンパイラが、この配列内の各要素を自動的に TVarRec 型の値に変換します。C++ では、この関数パラメータは、TVarRec 型の値の配列として表現されます。

const パラメータの配列を持つ関数を実装する際に、その配列の個々の要素を扱うには、TVarRec を使用します。

VType フィールドは、各 TVarRec 値の単純な型を表します。TVarRec 構造体のこのタグで渡される値は、さまざまな定数で表現されます。これらの定数は System ユニットで定義されています。以下にその一覧を示します。

Delphi の定数:



vtInteger

= 0;

vtBoolean

= 1;

vtCharacter

= 2;

vtExtended

= 3;

vtString

= 4;

vtPointer

= 5;

vtPChar

= 6;

vtObject

= 7;

vtClass

= 8;

vtWideChar

= 9;

vtPWideChar

= 10;

vtAnsiString

= 11;

vtCurrency

= 12;

vtVariant

= 13;

vtInterface

= 14;

vtWideString

= 15;

vtInt64

= 16;



C ++ の定数:



static const Shortint vtInteger

= 0x0;

static const Shortint vtBoolean

= 0x1;

static const Shortint vtCharacter

= 0x2;

static const Shortint vtExtended

= 0x3;

static const Shortint vtString

= 0x4;

static const Shortint vtPointer

= 0x5;

static const Shortint vtPChar

= 0x6;

static const Shortint vtObject

= 0x7;

static const Shortint vtClass

= 0x8;

static const Shortint vtWideChar

= 0x9;

static const Shortint vtPWideChar

= 0xa;

static const Shortint vtAnsiString

= 0xb;

static const Shortint vtCurrency

= 0xc;

static const Shortint vtVariant

= 0xd;

static const Shortint vtInterface

= 0xe;

static const Shortint vtWideString

= 0xf;

static const Shortint vtInt64

= 0x10;



メモ:  C++ では、sysopen.h で定義されている ARRAYOFCONST マクロを使用して、TVarRec 型の値の配列を作成できます。