Re: Storing Variables
- From: "Harry" <harryNoSpam@xxxxxxxxxxxxxxxxxx>
- Date: Fri, 9 May 2008 07:04:51 +1000
"Jason Hartsoe" <JasonHartsoe@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5453D57A-EAC4-4668-9C5F-DE1DC949B3E9@xxxxxxxxxxxxxxxx
I have a sub routine that's passing in a variable. I need to take thatDon't know if I understand you correctly, but you may be looking for a
variable and store it globally...but here's what's happening.
ex: I'm executing my routine: doMyThing(path, "test")
I'm executing that command at least 10 times replacing the word test with
my
next object. When im receving that variable:
Sub doMyThing(ByVal Path As String, ByVal other As String)
I can use my variable...now how can I take that variable from this sub and
pass it to another sub? Is there a way to store that variable or set
during
each call of doMyThing? Does that make sense? lol
Basically I want to store it and change it during each call...i'm doing
some
async stuff and need it to change each time it's called....
thanks!
Static variable. Static variables hold their values between calls to a
method.
.
- References:
- Storing Variables
- From: Jason Hartsoe
- Storing Variables
- Prev by Date: Re: Storing Variables
- Next by Date: Re: Recursive Registry Loop
- Previous by thread: Re: Storing Variables
- Next by thread: Re: Storing Variables
- Index(es):
Relevant Pages
|