Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ Using variables between subs
Using variables between subs
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Artel
USA (65 posts) Bio
|
Date
| Sun 03 Apr 2005 06:38 AM (UTC) |
Message
| How do I use the values from a variable in one sub in another sub? |
Artel. | Top |
|
Posted by
| Flannel
USA (1,230 posts) Bio
|
Date
| Reply #1 on Sun 03 Apr 2005 06:50 AM (UTC) |
Message
| Make it a global variable (dim it in the script file, not in a sub):
Dim A
Sub asdf (sName,sLine, aryWild)
'do something
A = 3
End Sub
Sub hjkl (sName,sLine, aryWild)
'do something else
A = A + 1
'A now equals four (provided you run asdf before hjkl)
End Sub
|
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
13,488 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top