[Gambas-user] 2D arrays

Jussi Lahtinen jussi.lahtinen at ...626...
Wed Sep 5 19:53:39 CEST 2012


OK, thanks!

Jussi



On Wed, Sep 5, 2012 at 8:21 PM, Emil Lenngren <emil.lenngren at ...626...>wrote:

> 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.lahtinen at ...626...>:
> > 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 at 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>



More information about the User mailing list