Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changing the Modalresult of a button on close
#3
Indeed.
If I ignore the Button's Modalresult completely and manually set the Form modalresult, then it actually works.
It is weird, because in the past I have tried this before and then the Buttons's Modalresult would override the Form Modalresult (which it is supposed to..?) and because I cannot set the Button Modalresult during the OnClick, it never worked.
Now I wrote a test program, and yes, it does work if I set the *Form* Modalresult in the OKBtn OnClick event, and the OKBtn Modelresult does NOT override it.
---
Bart Kindt
CEO and Developer
SARTrack Limited
New Zealand
www.sartrack.nz
Reply


Messages In This Thread
RE: Changing the Modalresult of a button on close - by BartKindt - 09-28-2023, 06:09 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)