I'm using gb.Args as an example here, but I guess I'm primarily interested in how to correctly reference components (especially those supplied within the gb namespace). Pretty sure this is laid out somewhere in the wiki, but try as I might I cannot find the info I need (or I need more coffee).
' Gambas module file
Public Sub Main()
Dim bA, bR, bS As Boolean
Args.Begin(Application.Name & " <option>")
bA = Args.Has("a", "about", "Display About " & Application.Name)
bR = Args.Has("r", "revision", "Display revision number")
bS = Args.Has("s", "state", "Display application state")
Args.End()
End
Above is the entirety of my module file, a slightly reduced version of what I see over here. I don't expect it to do anything, because I removed the code that evaluates BA, bR etc, but I do expect it to compile, except what I get is the following error:
Code: Select all
Unknown symbol 'Begin' in class 'Args'
![Smile :-)](./images/smilies/icon_e_smile.gif)