action_activate is an event handler not a funtion... that's why it's a sub in gambas SUB/FUNCTION are all synonyme of PROCEDURE
chose between each is just made by convention ... but for events it's a sub ! 2010/11/19 Michael <mdavi...@tpg.com.au>: > I have been using popup menus for the first time and got the following > from the Gambas help. > "PUBLIC SUB Action_Activate(key AS String) AS Boolean" > > I assumed this was an error as only functions have a return value so I > changed it "Public Function...". > Then on my line "mnuPopup.Popup()" it got an error "no return value". > > Then I modified the line to "PUBLIC SUB..." with no "as Boolean". and > got the same error. However it all works perfectly when written as a SUB > with a return value. Is this intended? > > One more question? Can Gambas 3 be installed alongside Gambas 2 on > Ubuntu Maverick? > > Thanks > Mike > > > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today > http://p.sf.net/sfu/msIE9-sfdev2dev > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > -- Fabien Bodard ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user