System.Classes.FindIntToIdent

提供: RAD Studio API Documentation
2011年10月18日 (火) 12:38時点におけるPyBot (トーク | 投稿記録)による版 (Scoping Libraries)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
移動先: 案内検索

Delphi

function FindIntToIdent(AIntegerType: Pointer): TIntToIdent;

C++

extern DELPHI_PACKAGE TIntToIdent __fastcall FindIntToIdent(void * AIntegerType);

プロパティ

種類 可視性 ソース ユニット
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

説明

与えられたデータ型に対する TIntToIdent 変換ルーチンを返します。

RegisterIntegerConsts は、名前文字列と整数値のペアの間の変換を定義するために、Delphi で内部的に使用されます。たとえば、Graphics ユニットは、このルーチンを使用して、'clMaroon' などの名前が付けられた色を登録します。この名前は、整数値 000080ドル として登録されます。 この変換関数は、型(この例では TColor)によって定義されます。

FindIntToIdent を呼び出すと、整数値から Ident 文字列への変換を実行するために呼び出す TIntToIdent ルーチンが返ります。変換を識別するデータ型を AIntegerType として渡します。たとえば、Graphics ユニットが登録した TColor 値の変換関数を取得したい場合は、TypeInfo(TColor) を渡します。

関連項目

https://docwiki.embarcadero.com/Libraries/Tokyo/j/index.php?title=System.Classes.FindIntToIdent&oldid=159302」から取得