PDA

View Full Version : Function QueryAllowProjectClose()


ianhull
08-19-2004, 04:42 PM
Hi all,

After Function QueryAllowProjectClose() what do i put if the program is never to close?

I tried false, false; end

Just can't seem to work it out.

Please help.

Thanks

SUF6NEWBIE
08-19-2004, 06:43 PM
HI ..are you wanting to STOP the user from having ability to EXIT
your application...please givemore information..

there are ways to place 'environment controls' as to under what
conditions the Aplication can be closed etc. and they
can be driven 'inside the --QueryAllowProjectClose() function

eg: you can advise the user - the App is doing something Do Ya wanna Close Now ?

eg: system checks or APP run conditions were not satisfied..
you can 'bypass' and enforce application exit...immediate or via user notification (timed message) for eg

eg: you can simply ask the user to confirm application.exit


Also note that if you Close the App via 'Close window Terminate' ,
any code in the 'Shutdown actions' will Not be performed...


return false;
if no other controls are in place, generally will return to the
Apps current action or next next line in your code

return true;
triggers the application to exit