| Subject |
Re: Form menu's |
| From |
Mervyn Bick <invalid@invalid.invalid> |
| Date |
Mon, 27 Jul 2020 10:01:02 +0200 |
| Newsgroups |
dbase.getting-started |
| Attachment(s) |
test_close.wfm |
On 2020-07-27 09:49, Akshat Kapoor wrote:
> In code 2 you have placed code after the form.close() line.
>
> Once a form encounters form.close() it will not execute any other
> command in the file apart from canClose or onClose events of the form.
I'm afraid this is not quite true.
Click the pushbutton on the attached form and both print statement's,
one before form.close() and the other after, print in the Results panel.
Mervyn.
|
** END HEADER -- do not remove this line
//
// Generated on 2020-07-27
//
parameter bModal
local f
f = new test_closeForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class test_closeForm of FORM
with (this)
height = 16.0
left = 42.8571
top = 0.3636
width = 40.0
text = ""
endwith
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = class::PUSHBUTTON1_ONCLICK
height = 1.0909
left = 9.2857
top = 5.3636
width = 15.2857
text = "Pushbutton1"
endwith
function PUSHBUTTON1_onClick()
?'1'
form.close()
?'2'
return
endclass
|