[RESOLVED] Passing variable between forms
Hi all,
I'm making a program where I need to pass the contents of a variable from one form to another. I remember when we did this at college it was something to do with byval and byref, and although I've been experimenting with both commands and have read some threads here about it, I can't make it work / keep getting errors.
Basically, all I need to know is how to pass a simple variable from one form to another, just the commands and the syntax.
Thanks!
Re: Passing variable between forms
You can create a global varibale in a module so that it can be used anywhere within your program.
VB Code:
'eg
Public YourVariable As String
Re: Passing variable between forms
OH Yeah, Modules.. Forgot about that XD
Thanks!