[Gambas-user] Me.Close in a multi-form application

2010-08-11 Thread vikram
hi, i have a multiform application, on the Close event of each form a confirmation dialog is displayed. The user clicks a button on each form to move to the next one(or clicks a button to go back to the previous form), when he/she does this the current form's Visible property is set to false

Re: [Gambas-user] Me.Close in a multi-form application

2010-08-11 Thread Bruce Bruen
Hi Vikram, There are probably much better ways to do what you are trying to do, but its hard to suggest them fro the sample. But for a quick answer: PUBLIC SUB Form_Close() DIM retval AS Integer IF NOT ME.Visible THEN ME.Close RETURN ENDIF retval = Message.Question(Are