[Gambas-user] Catch close event?
    Stefano Palmeri 
    rospolosco at ...152...
       
    Fri Oct 12 12:42:37 CEST 2007
    
    
  
Alle 12:27, venerdì 12 ottobre 2007, Stefano Palmeri ha scritto:
> Alle 11:11, venerdì 12 ottobre 2007, smiefert at ...784... ha scritto:
> > PUBLIC SUB Form_Close()
> >
> > message.Warning("Wnat to close this App?", "Yes", "Cancel")  
> >
> > END
I forgot CASE 2
PUBLIC SUB Form_Close()
   SELECT message.Warning("Wnat to close this App?", "Yes", "Cancel")  
     
     CASE 1
        PRINT "I'm closed!"
     
     CASE 2
        STOP EVENT 
      
   END SELECT   
END
  
>
> I'm sure it could be done much better...
>
>
> PUBLIC SUB Form_Close()
>
>    SELECT message.Warning("Wnat to close this App?", "Yes", "Cancel")
>
>      CASE 1
>           PRINT "I'm closed!"
>
>    END SELECT
>
> END
>
>
> Stefano
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> 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