Boolean組み込みファンクション - Notメソッド
変数のNOTを返します
Boolean組み込みファンクション (PRIM_LIBI.IBooleanIntrinsics) のメンバ
パラメータ
名前 | タイプ | データタイプ | 記述 |
|---|---|---|---|
Result | *Result (任意) | ブール値 | 結果のブール値 |
詳細
Not は、ブール変数の反対の値を返します。すなわち、True は False として、 False は True として返されます。
例
#Button.Enabled := #Button.Enabled.Not
上記の例は、以下の例と同等です。
If (#Button.Enabled)
#Button.Enabled := False
Else
#Button.Enabled := True
Endif