Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Variants.pasには、バリアントの型をチェックするためのいくつかのVarIsXXX()関数があります。ただし、VarIsBoolean()はありません。
バリアントがブール型であるかどうかを確認するための好ましい方法は何ですか?
試す
varIsType(v, varBoolean);
その後、独自のVarIsBoolean関数を作成するのは簡単です。
function VarIsBoolean(const V: Variant): Boolean; begin result := varIsType(v, varBoolean); end;