[Gambas-user] Closing a Message!

Christof Thalhofer chrisml at deganius.de
Thu Dec 10 21:06:42 CET 2020


Am 10.12.20 um 15:33 schrieb Charlie Ogier:

> This looks a little dangerous to me, is this an issue?

Yes.

> Public Sub Form_Open()
> 
>    ''Run this and close the Message by clicking the "X", NOT Yes or No.
>    If Message.Question("Delete hard drive?", "No", "Yes") = 2 Then Print 
> "Deleting hard drive"
> 
> End

In such cases i write:

> If Message.Question("Delete hard drive?", "No", "Yes", "Cancel") = 2 Then
> ...

Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20201210/3ed0bea4/attachment-0001.sig>


More information about the User mailing list