aqif
Registered User.
- Local time
- Today, 19:48
- Joined
- Jul 9, 2001
- Messages
- 158
I have a simple problem in which I want to get value of variables that run internally to a function. for example look at a simple function which takes MyValue as an input and multiplies it with a random number to return a value
Is there anyway I can get and use the value of intRandom as well? In this case I am looking for something like RandomValue.intRandom
In the above example I can easily calculate value of intRandom by dividing the result with myValue but remember this is just an example to illustrate my problem. My actual function is much more complex. I hope I am making sense here.
Code:
Public Function RandomValue(MyValue As Integer) As Long
Dim intRandom
intRandom = Int(Rnd() * 100)
RandomValue = intRandom * MyValue
End Function
Is there anyway I can get and use the value of intRandom as well? In this case I am looking for something like RandomValue.intRandom
In the above example I can easily calculate value of intRandom by dividing the result with myValue but remember this is just an example to illustrate my problem. My actual function is much more complex. I hope I am making sense here.
Last edited: