[Gambas-user] Does Gambas have an 'InRange()' function?

Moviga Technologies moviga at ...3488...
Mon Oct 12 18:39:29 CEST 2015


 

Does Gambas have a built in "InRange" function like this: 

Boolean = InRange(Value, From, To) 

If not, could we have one? Perhaps like this: 

Public Function InRange(Value As Integer, {From} As Integer, {To} As
Integer) As Boolean 

  If Value >= {From} And If Value <= {To} Then Return True
  Return False 

End 

  



More information about the User mailing list