OK, thanks!
Jussi
On Wed, Sep 5, 2012 at 8:21 PM, Emil Lenngren 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 a
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
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
ArrayBug-0.0.1.tar.gz
Description