[Gambas-user] SUb Routines with a return value

Michael mdavies5 at ...169...
Fri Nov 19 13:33:49 CET 2010


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






More information about the User mailing list