Thanks for the explanation, Tobias. Having fixed the declaration, I am able to run the code, but all I see is an empty form with no controls. Sigh. I will keep hacking until I understand enough to make it work.
Gambas is great work, by the way - just what I needed. Cheers, Doug On Tue, 2017-08-15 at 13:03 +0200, Tobias Boege wrote: > > I don't know if "Public a As x[k]" was ever valid in Gambas (the source code > in the markdown of that page looks like Gambas2). See the Array Declaration > page [1]. You have normally two types of arrays in Gambas. The normal dynamic > ones, which you can declare with > > Public a As New x[k] > Public a As New x[](k) ' alternative > > (note the NEW keyword), and so-called embedded arrays: > > Public a[k] As x > > Usually you want the former (normal) arrays. > > I updated the example in the Object.Attach() documentation. > > Regards, > Tobi > > [1] http://gambaswiki.org/wiki/lang/arraydecl > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user