Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Really nooby question but whatever
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
RaLz




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
Brightguy




PostPosted: 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.
RaLz




PostPosted: 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
Tony




PostPosted: 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
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: