[Gambas-user] Declaring 'Public pbSwitch As Object[16]' throws error 'Syntax error in FMain.class:3'

Doug Hutcheson owlbrudder at ...626...
Tue Aug 15 10:59:40 CEST 2017


I have just found Gambas and have the usual learning curve. Sigh.

I have copied the code from http://gambaswiki.org/wiki/comp/gb/object/a
ttach into a new project and tried stepping through it. The first
statement is the declaration 'Public pbSwitch As Object[16]' and this
throws ''Syntax error in FMain.class:3'. If I delete the array
dimension '16', I can step through the code until the first time the
array is used when it falls over, of course. Can someone please tell me
what I have done wrong?

By the way, I am glad to have found Gambas, as it leverages my VB and
LibreOffice Basic experience. Excellent application!

Kind regards,
Doug



More information about the User mailing list