-
Sep 25th, 2006, 06:44 PM
#1
Thread Starter
Addicted Member
[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!
-
Sep 25th, 2006, 06:47 PM
#2
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
-
Sep 25th, 2006, 07:06 PM
#3
Thread Starter
Addicted Member
Re: Passing variable between forms
OH Yeah, Modules.. Forgot about that XD
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|