How do you pass the data in a field on one form to a field in another form?
stan yost
0
Light Poster
Recommended Answers
Jump to PostSpecify
formName.fieldName.data
Jump to PostWaltP is correct. You can also call functions, events and methods this way too. For example, if you have a button on form2, and you want to "click" it from a button on form1, you can do something like
form2.command1 = true
.
Jump to Poststan yost there is a simple way
lets say you want to pass the text feild of text1
1- declare a public variable in the general part of the form like this
public varaiableName as String
2- in the form_load() write
variableName=text1.text
3- …
Jump to Poststan yost there is a simple way
lets say you want to pass the text feild of text1
1- declare a public variable in the general part of the form like this
public varaiableName as String
2- in the form_load() write
variableName=text1.text
3- you can access this variable from …
All 14 Replies
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Comatose
290
Taboo Programmer
Team Colleague
lover99509
5
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Comatose
290
Taboo Programmer
Team Colleague
stan yost
0
Light Poster
HansyWolf
0
Newbie Poster
Comatose
290
Taboo Programmer
Team Colleague
HansyWolf
0
Newbie Poster
HB25
0
Junior Poster in Training
hkdani
39
Posting Pro in Training
Alyssa_1
0
Newbie Poster
Stuugie
50
Marketing Strategist
Alyssa_1
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.