Log in

View Full Version : arrays...



Iceevil
12-23-2008, 06:47 PM
hey, guys..
i've a problem. :P
i want to make an "array of array of integer"
so i want to make this with only within in line (dont ask why ;) )

myArray:= [[1, 2, 0], [2, 1, 0], [1, 2, 0]];


but it gives an error to me:

[Runtime Error] : Type Mismatch in line 20 in script

Is any wrong with my code?

And can i give that as an anonymous argument to an function like
myFunction([[1, 2, 0], [2, 1, 0], [1, 2, 0]]); ?

bullzeye95
12-23-2008, 07:48 PM
myArray:= [TIntegerArray([1, 2, 0]), TIntegerArray([2, 1, 0]), TIntegerArray([1, 2, 0])];That should work. It's a "bug" in the engine.

Iceevil
12-23-2008, 10:01 PM
oh, thats bad...
But thx. ;)