I have a routine that, at one step, calls a form and shows it modal. When the user closes the form the routine continues. However, upon closing the form I want to know if it performed its assigned function- if it failed then I need to stop the routine. However, since the form was opened modally and then closed and its memory unloaded at the end, I don't see any way to get any information about what it did. I could have the form trigger a global boolean variable but that does not seem the correct way. There has to be a simple solution, I just can't see it, please help...
Tekito
0
Junior Poster in Training
Recommended Answers
Jump to PostHi,
Global variable or Properties can be used as your suggestion.
Assume you have Ok and Cancel button in your modal form.
In the Modal form, user can click Ok button for approval and for disapproval they can click Cancel Button or Close Button.When Close button is …
Jump to PostI think it's NO. It must be dispose by setting it to Nothing. Unloading the form varaible means you're just closing the form and since you did not dispose the form's variable ergo the variable was still there.
All 7 Replies
Tekito
0
Junior Poster in Training
selvaganapathy
31
Posting Pro
Tekito
0
Junior Poster in Training
jireh
3
Posting Whiz
Tekito
0
Junior Poster in Training
selvaganapathy
31
Posting Pro
Tekito
0
Junior Poster in Training
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.