2015-10-12 18:39 GMT+02:00 Moviga Technologies <[email protected]>:
>
>
> 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
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/gambas-user


Well no but this is a school case that add an argument to my query for
a macro declaration for gambas.


nevertheless you can do


Result = Value>=From and Value <= To

Which is no so long to write.


-- 
Fabien Bodard

------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to