Boolean Intrinsic Functions - Not Method
Return the not of the variable
Member of Boolean Intrinsic Functions (PRIM_LIBI.IBooleanIntrinsics)
Parameters
Name |
Type |
Data Type |
Description |
Result |
*Result (Optional) |
Boolean |
Resulting Boolean |
Details
Not returns the opposite value of a Boolean variable. Thus, a True will be returned as a False, and vice versa
Example
#Button.Enabled := #Button.Enabled.Not
This is equivalent to writing
If (#Button.Enabled)
#Button.Enabled := False
Else
#Button.Enabled := True
Endif