Methods declaration

[ STATIC ] ( PUBLIC | PRIVATE ) ( PROCEDURE | SUB | FUNCTION_ ) Identifier *( [ [ OPTIONAL ] Parameter #1 [ , [ OPTIONAL ] Parameter #2 ... ] ) [ AS Datatype ]

...

END

This declares a class method. The END keyword indicates the end of the method.

Example :

STATIC PUBLIC PROCEDURE Main()
...
PUBLIC FUNCTION Calc(A AS Float, B AS Float) AS Float
...
PRIVATE SUB DoIt(Command AS String, OPTIONAL SaveIt AS BOOLEAN = TRUE)
...

Referenced by: GambasComponentDbDB GambasComponentGbApplication GambasComponentGbClass GambasComponentGbClasses GambasComponentGbError GambasComponentGbFile GambasComponentGbLibraries GambasComponentGbLibrary GambasComponentGbObject GambasComponentGbSystem GambasComponentQtApplication GambasComponentQtClipboard GambasComponentQtColor GambasComponentQtDesktop GambasComponentQtDialog GambasComponentQtDraw GambasComponentQtDrawClip GambasComponentQtForm GambasComponentQtKdeDialog GambasComponentQtMessage GambasComponentQtMouse GambasComponentQtPicture GambasComponentQtPrinter GambasComponentQtWindow GambasComponentQtWindows GambasEND GambasFUNCTION GambasIndexByCategory GambasIndexByName GambasMethodDeclaration GambasMethodsDeclaration GambasPRIVATE GambasPROCEDURE GambasPUBLIC GambasSTATIC GambasSUB