[Gambas-user] Event in Menu

Rob sourceforge-raindog2 at ...94...
Fri Aug 22 07:53:26 CEST 2003


On Friday 22 August 2003 01:53, Rizky Tahara Shita wrote:
...
> hMenu = NEW Menu(hMenu) AS "MnuEvent"
> hMenu.Text = "Quit"
> hMenu.Tag = mnuTab.Count
> mnuTab.Add(hMenu)
>
> PUBLIC SUB mnexit_Click()
>   ME.CLOSE
> END
>
> what else could be wrong ??

You forgot the END in the sub before mnexit_Click().  (I think it's 
MenuCreating()...) I bet you just accidentally deleted it while editing code, 
I've done that.  In this case it's easy to overlook because the entire 
MenuCreating() sub isn't indented.

Rob





More information about the User mailing list