Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NEWBIE QUESTION

Status
Not open for further replies.

GOOGE

Technical User
Jun 20, 2001
36
NZ
howdy
can some body tell me how to use the value of a vaireble in a form in anothr different form....

if i had


B=text1.text


How can i use the value of 'B' in a different form.

i have 2 forms running and i want to use the value of a textbox in both forms.

i hope i made it clear.

James Cuttance
 
In Form1:
Public b as string
b=text1.text

In Form 2:
text2.text=form1.b

CU Kostarsus
 
OOP:

in form2:
private myB as string

public property let setB(text as string)
myB = text
end property


in form1:

B = text1.text
load form2
form2.setB = B 'now form 2 has access to it's own copy of B
form2.show

Troy Williams B.Eng.
fenris@hotmail.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top