Thanks Kad that does the trick!
Bruce
--
View this message in context:
http://www.nabble.com/Form-exit-code-when--X--clicked-tp25919887p25937554.html
Sent from the gambas-user mailing list archive at Nabble.com.
--
Com
On Fri, 2009-10-16 at 17:44 -0700, bbb888 wrote:
> I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly
> if the user uses an in-form exit such as a exit button :
>
>
> PUBLIC SUB btExit_Click()
>
> ME.Close(60)
>
> END
>
>
>
> But if the user clicks on the [X] i
On Fri, 2009-10-16 at 20:13 -0600, Dimitris Anogiatis wrote:
> Hey Bruce,
>
> Does it work for a normal form (not a Modal one)?
lol
--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only dev
Hey Bruce,
Does it work for a normal form (not a Modal one)?
Regards,
Dimitris
On Fri, Oct 16, 2009 at 6:44 PM, bbb888 wrote:
>
> I can get an exit code from a form shown with rtn = fm.ShowDialog()
> correctly
> if the user uses an in-form exit such as a exit button :
>
>
> PUBLIC SUB btExit_C
I can get an exit code from a form shown with rtn = fm.ShowDialog() correctly
if the user uses an in-form exit such as a exit button :
PUBLIC SUB btExit_Click()
ME.Close(60)
END
But if the user clicks on the [X] in the titlebar all I get is 0 in rtn.
Is there a way to trap the exit