Hi
I am creating a program that compares cell phone providers. The company name, monthly rate, # of minutes, Longdistane, etc... I am working with 3 forms. Form1 and 2 have the same stuff, but form2 has a compare button. Form 3 has a lable with a with a print and save button. What i want to have the program do is be able to compare the name of both companes and anything eles. Like monthly rate, # of minutes, etc...
Then after data is compared. That data will show up on form3 in the lable, but the data from form1 will be first then the data from form2 will be second.
I want to know how can I do this. I can only get the data from form2 to show in the lable, but not form1's data
Any suggestions?
Thanks
Comments
You can declare a global (public) variable, or string, and then, say the variable is x, then do label1.text = x. Maybe that would work......
Dhruv(BattleGuard)
THX
: Hi
: I am creating a program that compares cell phone providers. The company name, monthly rate, # of minutes, Longdistane, etc... I am working with 3 forms. Form1 and 2 have the same stuff, but form2 has a compare button. Form 3 has a lable with a with a print and save button. What i want to have the program do is be able to compare the name of both companes and anything eles. Like monthly rate, # of minutes, etc...
: Then after data is compared. That data will show up on form3 in the lable, but the data from form1 will be first then the data from form2 will be second.
:
: I want to know how can I do this. I can only get the data from form2 to show in the lable, but not form1's data
: Any suggestions?
:
: Thanks
:
Hi,
I I did that. I declared 3 variables.
name1 as string
name2 as string
results as string
On the load function on form1 i said
name1 = me.txtname1.text
One the load function on form2 i said
name2 = me.txtname.text
Then in the compare button click event function of form2
results = name1 & vbnewline & name2
then on form3 in the load function
me.labshow.text = results
I found ou that this does not work
How will you idea work? Could you give more information.
: Hey,
: You can declare a global (public) variable, or string, and then, say the variable is x, then do label1.text = x. Maybe that would work......
:
:
: Dhruv(BattleGuard)
: THX
:
: : Hi
: : I am creating a program that compares cell phone providers. The company name, monthly rate, # of minutes, Longdistane, etc... I am working with 3 forms. Form1 and 2 have the same stuff, but form2 has a compare button. Form 3 has a lable with a with a print and save button. What i want to have the program do is be able to compare the name of both companes and anything eles. Like monthly rate, # of minutes, etc...
: : Then after data is compared. That data will show up on form3 in the lable, but the data from form1 will be first then the data from form2 will be second.
: :
: : I want to know how can I do this. I can only get the data from form2 to show in the lable, but not form1's data
: : Any suggestions?
: :
: : Thanks
: :
:
:
ON FORM 3 LOAD FUNCTION
dim frm1 as form1
frm1 = new form1()
dim frm2 as form2
frm2 = new form2()
name1 = frm1.txtname1.text
name2 = frm2.txtname2.text
You could try this
Thanks
: : [b][red]This message was edited by rustbuck sets4 at 2003-3-11 17:18:0[/red][/b][hr]
:
:
: ON FORM 3 LOAD FUNCTION
:
: dim frm1 as form1
: frm1 = new form1()
:
: dim frm2 as form2
: frm2 = new form2()
:
: name1 = frm1.txtname1.text
: name2 = frm2.txtname2.text
:
: You could try this
:
:
Any MOre Ideas???
Thanks
: Tried that still nothing. Your basicly telling the program where to get the data. Still can't get it. Need more help please
: Thanks
:
: : : [b][red]This message was edited by rustbuck sets4 at 2003-3-11 17:18:0[/red][/b][hr]
: :
: :
: : ON FORM 3 LOAD FUNCTION
: :
: : dim frm1 as form1
: : frm1 = new form1()
: :
: : dim frm2 as form2
: : frm2 = new form2()
: :
: : name1 = frm1.txtname1.text
: : name2 = frm2.txtname2.text
: :
: : You could try this
: :
: :
:
:
:
:
Thanks for everyones help, but i got it. I had to go to each form and give the text field a name in the click event to the next form. hard to explain, but i do have a dummy program that can show you.
: Hi
: I am creating a program that compares cell phone providers. The company name, monthly rate, # of minutes, Longdistane, etc... I am working with 3 forms. Form1 and 2 have the same stuff, but form2 has a compare button. Form 3 has a lable with a with a print and save button. What i want to have the program do is be able to compare the name of both companes and anything eles. Like monthly rate, # of minutes, etc...
: Then after data is compared. That data will show up on form3 in the lable, but the data from form1 will be first then the data from form2 will be second.
:
: I want to know how can I do this. I can only get the data from form2 to show in the lable, but not form1's data
: Any suggestions?
:
: Thanks
: