>  -----Original Message-----
>  I just had a case where I needed to provide a limit on the 
>  acceptable range of values.  What I ended up with is this:
>  
>  Function Limit(Extends k As Integer, minimum As Integer, maximum As
>  Integer) As Integer
>     Select Case k
>     Case Is < minimum
>       Return minimum
>     Case Is > maximum
>       Return maximum
>     Else
>       Return k
>     End Select
>  End Function
>  
>  I am using this function for code within my MouseDrag event, 
>  and the result is that I have what appears to be a "fence".

How exactly do you call / use that?


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to