Boolean Intrinsic Functions - Not Method

Return the not of the variable

Member of Boolean Intrinsic Functions (PRIM_LIBI.IBooleanIntrinsics)

Parameters

NameTypeData TypeDescription
Result*Result (Optional)BooleanResulting 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

See also

All Component Classes

Technical Reference

Febuary 18 V14SP2