10 14 4 IsBetween

LANSA Technical

10.14.4 IsBetween

IsBetween tests the value of a number and returns true if it is within the limits specified. A value equal to either of the limits is considering to be within the limits

Input Parameters

Numberone - Upper or lower limit

Numbertwo - Upper or lower limit

Example

#Button.enabled := #Number.IsBetween(1 100)

 

This is equivalent to writing

If ((#Number >= 1) and (#Number <= 100))

 

#Button.Enabled := True

 

Else

 

#Button.Enabled := False

 

Endif

 

Ý 10.14 Fixed Point Intrinsic Functions