|
-
Jun 17th, 2000, 04:38 AM
#1
Thread Starter
Lively Member
I want to transfer variables from one form to another keeping the values, is there a better way than using text boxes to do it?
-
Jun 17th, 2000, 04:52 AM
#2
Fanatic Member
A much better way!
Place the following in a module:
Code:
Global myVar as String 'or whatever you want it to be called
Change the information accordingly. But all you have to do is where your telling the form to pull the vars value, use the vars name rather than the text box that I assume you're using now.
www.RealisticGraphics.net
Running VS.Net Enterprise & VB 6
Other Languages: JavaScript, VBScript, VBA, HTML, CSS, ASP, SQL, XML
MSN Messenger: kmsheff
-
Jun 17th, 2000, 06:48 AM
#3
Thread Starter
Lively Member
no i posted before i tried(thank god i did, i have over 50 variables probly to transfer back and forth)
i tried dim in a module but thank you for helping
-
Jun 17th, 2000, 01:32 PM
#4
PowerPoster
registry
may be you can keep it in the registry? with the 2 simple function bundle with VB. SaveSetting and GetSetting
-
Jun 17th, 2000, 01:41 PM
#5
Thread Starter
Lively Member
i know about using the registry, but for what I am doing the global declarations is MUCH better(you have no idea how happy it made me to find it THIS easy to do so(yahoo)(id use exclamation point but my one - four keys above the keys are broken quite annoying, not that you cared, hehehehehe)
-
Jun 17th, 2000, 02:06 PM
#6
-
Jun 18th, 2000, 02:15 AM
#7
Thread Starter
Lively Member
i meant all the keys(one, two, three, and four) are broken not just four(i can use the numpad for numbers(quite annoying in VB), and char map for the at sign etc, but relaly annoying)
anything this could be beyond hardware?
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
|