|
-
Oct 10th, 2001, 05:38 PM
#1
Thread Starter
Addicted Member
from form to, well... form
Hi yall Im working on a project and am havin some trouble. I have one question. How do i make information carry over from one form to another? For example I want u to be able to ennter ur age and i want the program to be able to talk about your input on different forms. PLEAS HELP!!!!!
everything is made of carbon, except some stuff!!BTW LOOK AT ME PROFILE!!
-
Oct 10th, 2001, 05:42 PM
#2
PowerPoster
You can create public variables and put the data in them, like this
Form1 Code
VB Code:
Private Sub Command1_Click()
strName = Text1.Text
Form2.Show
End Sub
Private Sub Form_Load()
Text1.Text = "Enter your name.."
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
End Sub
In a module
Form2 code
VB Code:
Private Sub Form_Load()
Label1.Caption = "Your name is " & strName
End Sub
-
Oct 10th, 2001, 05:43 PM
#3
Thread Starter
Addicted Member
thax homey
everything is made of carbon, except some stuff!!BTW LOOK AT ME PROFILE!!
-
Oct 10th, 2001, 05:44 PM
#4
-
Oct 10th, 2001, 05:48 PM
#5
PowerPoster
-
Oct 10th, 2001, 05:50 PM
#6
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
|