@Benoit: Thank you :)
@Matti: Thanks, it works on Gambas2. I am working on a Live Installer which
would work on Debian & BOSS/GNU Linux.
--
The Palm PDK Hot Apps Program offers developers who use the
Plug-In De
Sorry, didn't see that Benoit had already answered.
But, besides the code: Why do you ask the user (who just has decided) if he
wants to decide? I really hate programs that ask me things like that. If I close
a form by mistake, I open it again.
I think the questions on Form_Close event should be
>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.Ques
> 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
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 exiti