Click to See Complete Forum and Search --> : label


serdaryorulmaz
October 22nd, 2001, 10:50 AM
i have a computed data in a label in form 4. and when i press the next button ( command button) to jump the next form 5 i want the data shown in the text box in form 5. i want the transfer the data in label in form 4 to text box in form 5...what should i have to do

Serdar Yorulmaz

John G Duffy
October 22nd, 2001, 11:03 AM
do this in your Command button click event.
[vbcode]
Form5.Text1.Text = Label1.Caption

John G

gknierim
October 22nd, 2001, 11:03 AM
frm5.txtMyText.Text = frm4.lblMyText.Caption

Vikranth
October 22nd, 2001, 03:43 PM
Hi,

Write a public procedure in the form5. Then call it from form4.

Here is the example:

'in form5...
public sub PostData(Ctl as Control)
if typeof Ctl is Label then
text1.text = Ctl.caption
end if
end sub

'in form4...
call form5.PostData(form4.Label1)





You can pass other controls like above and use them.