|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
range/between
anyone: 4 is between 1 to 10
is there any embeded VB function(boolen) for this question? |
|
#2
|
|||
|
|||
|
Not sure if there is a native function, but you could write your own along the lines of
Code:
function IsBetween(number,lower,upper)
If (CInt(number) <= CInt(upper)) AND (CInt(number) >= CInt(lower)) Then
return True
else
return False
end if
End sub
I haven't tested this, but you get the idea.
__________________
How can I soar like an eagle when I'm flying with turkey's? |
|
#3
|
|||
|
|||
|
nop.
i've asked for a native function. tnx anyway |
|
#4
|
|||
|
|||
|
why does it need to be a native function?
|
|
#5
|
|||
|
|||
|
There isn't a native function in VBA, thus my previous answer is what you would need.
If you need to make it a "global" function, simply declare it as public. ![]() |
|
#6
|
|||
|
|||
|
it doesn't matter so much (unatratnag,mohecan) - you're right. it's just me - prefering to do as less cpu as can. if there was (i understand there is not) a native, it would have been written in C lang, and therefore materialization whould have been optimal. tnx guys !
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > range/between |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|