Computer Science Canada How to input variables from another form? |
Author: | Ashi_Mashi2 [ 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 |
Author: | GlobeTrotter [ Fri Mar 25, 2005 4:22 pm ] |
Post 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 |
Author: | Ashi_Mashi2 [ Fri Mar 25, 2005 10:58 pm ] |
Post 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 |