Integer Can Not be Called From Array

29 views
Skip to first unread message

Yusuf Fahry

unread,
Apr 11, 2016, 1:25:31 PM4/11/16
to Haxe
Hi,

Pretty new to HaXe, and got an error.
This is what i'm doing, 
  1. trying to insert Array in an Array,
  2. and check its length.
var aList = new Array();

for (i in 0...5)
{
  var array = new Array();
 aList.insert(i, array);
}

But when I tried to do the following:

aList[x].length();

It says that: Int cannot be called

Anyone can help me?

Juraj Kirchheim

unread,
Apr 11, 2016, 1:31:27 PM4/11/16
to haxe...@googlegroups.com
You want to use `aList[x].length` ;)

--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.

Yusuf Fahry

unread,
Apr 11, 2016, 1:34:47 PM4/11/16
to Haxe
Oh my God...


THANKS!!!
Reply all
Reply to author
Forward
0 new messages