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

Username:   Password: 
 RegisterRegister   
 How to input variables from another form?
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
Ashi_Mashi2




PostPosted: Fri Mar 25, 2005 3:52 pm   Post subject: How to input variables from another form?

Hi agian...

i am designing a project that has 4-5 forms. I want to know how can i input the value of a variable from one form to another. For example, i declared "x" in form1, and i want to use it in form2 as well....thanks again
Sponsor
Sponsor
Sponsor
sponsor
GlobeTrotter




PostPosted: Fri Mar 25, 2005 4:22 pm   Post subject: (No subject)

The way I did it was to create a module that declares the variables, and declare them all as Global. For example, in the module you'd write:

Global VarName As String
Ashi_Mashi2




PostPosted: Fri Mar 25, 2005 10:58 pm   Post subject: (No subject)

thanks...it works;)...i used to save it under an object, and then call it back...it took a long time...but, now it's fine..thx
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  [ 3 Posts ]
Jump to:   


Style:  
Search: