EDIT: New problem, see latest post.
EDIT: Nevermind solved
EDIT: Just because Nauman said so:
This is how you declare a multidimensional array:
myarray: Array [1..9] of Array [1..9] of Integer;
EDIT: New problem, see latest post.
EDIT: Nevermind solved
EDIT: Just because Nauman said so:
This is how you declare a multidimensional array:
myarray: Array [1..9] of Array [1..9] of Integer;



You need to set the length of it. Either change "tehsecret: Array of Array of Integer;" to "tehsecret: Array [1..9] of Array [1..9] of Integer;", or set the length of tehsecret to 10, and loop through tehsecret[1] through [9] and set their lengths to 10.
Ah, figured it was something like that lol. Thanks. Rep+
Afaik if he does it like that he will have to do
SCAR Code:Bob[0][0] := 1;
Bob[0][1] := 2;
I guess if this information is being added at runtime and is not static I guess it does not make a difference. But if that information is never going to change ... well 10 arrays of a array of 10 is 100 integers, and that means writing out bob[x][x] a hundred times. If he does not set the length and just does
SCAR Code:Bob[0] := [0, 1, 2, 3, 4];
It becomes much easier.
Or Bob := [Tintegerarray([0, 1, 2, 3, 4])];.
There are currently 1 users browsing this thread. (0 members and 1 guests)