General information
Category:
Forms & Form designer
somebody provided me following codes, but those do not work
Pleaes modify
Maybe bindevent can help you.
The idea is to write your own handler for queryunload and bind to your forms.
*
* in your main.prg add handler to each form
*
for each m.form in _screen.forms
do myHandler with m.form
endfor
*
* myHandler.prg
*
para oForm
private o
m.o=createobject("myHandler")
=addproperty(m.oForm,"__handler", m.o)
=bindevent(m.oForm,"queryunload",m.o,"doQueryUnload")
define class myHandler as session
datasession=1
function doQueryUnload
=messagebox("Please press close button to exit",_screen.ActiveForm.caption)
nodefault
enddefine
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only