10 15 7 IsBetween

LANSA Technical

10.15.7 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 := #Floating.IsBetween(1 100)

 

This is equivalent to writing

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

 

#Button.Enabled := True

 

Else

 

#Button.Enabled := False

 

 Endif

 

Ý 10.15 Floating Point Intrinsic Functions