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 Postlover's method is accurate, and will work.... however, it's not good programming style. As Waltp Mentioned, it's easier first off, to reference the object hierarchy, and beyond that, why would you want to use memory space (a variable) to contain information that's ALREADY stored somewhere? That will slow down the …
Jump to PostI might not understand you completely, but if you are asking what I think you are asking, setting a global variable should work among all forms. I just want to make sure that you are using VB6, and not VB.Net or VB express..... Because I don't believe VB6 has a …
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.