You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

ブール値として文字列を返します
CompatibleUnicode組み込みファンクション (PRIM_LIBI.ICompatibleUnicodeIntrinsics) のメンバ

パラメータ

名前

タイプ

データタイプ

記述

Result

*Result (任意)

ブール値

結果のブール値

FalseCaption

*Input (任意)

Unicode 文字列

FALSE値として使用する値

TrueCaption

*Input (任意)

Unicode 文字列

TRUE値として使用する値

詳細


AsBoolean は変数をブール値に変換します。デフォルトでは、 AsBoolean は、 true または false 文字列を受け取ることを想定します。その他の値の場合は実行時エラーになります。また、デフォルトを上書きし、評価する true および false の値を TrueCaption および FalseCaption パラメータで指定することもできます。


この例では、 AsBoolean は文字列値 Y または N を想定します。
#Button.enabled := #NChar.AsBoolean(N Y)
上記の例は、以下の例と同等です。
Case of_Field(#NChar)
When (= Y)
#Button.enabled := True
When (= N)
#Button.enabled := False
Endcase

参照

すべてのコンポーネント クラス
テクニカルリファレンス

  • No labels