Author |
Message |
RaLz
|
Posted: Wed Jun 09, 2004 3:03 pm Post subject: Really nooby question but whatever |
|
|
ok if i unload a form and load up another form how do i take the variable values from the first form and use them in my second form |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Brightguy
![](http://compsci.ca/v3/uploads/user_avatars/527435178485ad4c287538.gif)
|
Posted: Wed Jun 09, 2004 5:21 pm Post subject: Re: Really nooby question but whatever |
|
|
Declare them as Public variables, and you can access them from any form: e.g. Form1.Variable. |
|
|
|
|
![](images/spacer.gif) |
RaLz
|
Posted: Wed Jun 09, 2004 7:11 pm Post subject: (No subject) |
|
|
thanks, do you know how to restart a form. So when my character dies the form reloads so everything is back in place |
|
|
|
|
![](images/spacer.gif) |
Tony
![](http://wiki.compsci.ca/images/f/f4/OniTony.gif)
|
Posted: Wed Jun 09, 2004 10:36 pm Post subject: (No subject) |
|
|
i think you'd have to write a sub to reset the variable values |
Tony's programming blog. DWITE - a programming contest. |
|
|
|
![](images/spacer.gif) |
|