You cannot access array elements with the "Array" type. That is just a base class with no _get method. If you have an unknown array type you must first cast the array to an object, or to the "real" type. Read more about this here: http://code.google.com/p/gambas/issues/detail?id=175 ;)
/Emil 2012/9/5 Jussi Lahtinen <jussi.lahti...@gmail.com>: > Is this bug? > > Private Sub ArrayTest(iArr As Array) > > Print Object.Type(iArr) > Print iArr[1, 1] *<-- This gives "Not an array".* > > End > > Public Sub Button1_Click() > > Dim iArray As New Integer[10, 10] > > Print Object.Type(iArray) > > ArrayTest(iArray) > > End > > > Jussi > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user