[Gambas-user] Confirm on form close
Matti
math.eber at ...221...
Wed Aug 4 17:50:26 CEST 2010
>From Gambas Help:
STOP EVENT
Works in Gambas3, if not in Gambas2, look in the help.
Regards
Matti
Am 04.08.2010 14:01, schrieb vikram:
> Hi,
>
> Is there a way to confirm from a user when decides to close a form?
>
> PUBLIC SUB Form_Close()
> DIM retVal AS Integer
> retval = Message.Question("Are you sure you want to exit?", "Yes", "No")
> IF retVal = 1 THEN
> ME.Close
> ELSE IF retVal = 2 THEN
> 'code to prevent the form from exiting
> ENDIF
> END
>
> Nothing i've put there seems to have been able to stop the form from exiting so far.
>
> Thanks
> Vikram
>
>
>
>
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://p.sf.net/sfu/dev2dev-palm
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list