[Gambas-user] Leavng a SUB

Henry Ismaili secmon at ...169...
Tue Jun 24 15:42:23 CEST 2003


Is this the way it's supposed to be done ...

PUBLIC SUB Button2_Click()
  
  IF textbox1.text = "" THEN
    Message.Question("You must enter a number", "OK")
    GOTO B2_END
  END IF  
  
  PRINT textbox1.text

B2_END:

END

I know in VB, instead of the GOTO, u place an 'EXIT SUB".

Regards,

Henry





More information about the User mailing list