How would one add values to the arrays inside of arrays?
ie
Lol[0][0..100]
Lol[1][0..100]
lol[0][0] := z;
lol[0][1] := b;
works but that creates a lot of unneeded lines and work for me.
How would one add values to the arrays inside of arrays?
ie
Lol[0][0..100]
Lol[1][0..100]
lol[0][0] := z;
lol[0][1] := b;
works but that creates a lot of unneeded lines and work for me.
Last edited by Capricorn; 06-22-2009 at 10:41 AM.

Have you tried array of array of Integer;? :]
I can access them just fine, and it has nothing to do with what they are a array of. I can add to the second arrays just fine doing it one by one, but I cant go like:
lol[0] := [1, 2, 3]
I have to go
Lol[0][0] := 1;
lol[0][1] := 2;
etc etc.
And for the sake of someone coming along saying just do inc and a for loop, I am not trying to store increasing numbers and this is all for the sake of an example.

umm..
SCAR Code:for i := 0 to 9 do
Lol[0][i] := i;
?
for i := 0 to high(lol[0]) do or something? tbh im not sure how you can add them faster.
“Ignorance, the root and the stem of every evil.”

What Blumblebee and I both said would work, I think.
Can you please restore the post to what you had before?

Did you get your answer?
Not from you guys :P, I said in my second post that I was using those as a example, not what I actually wanted to perform.
My real problem was that I was doing Lol := [1,2,3,4,etcetc]; when I had set the value already. All I had to do was take away the [0..100] from the declaration of the array and it worked.
Thanks aways.
For archival purposes.
There are currently 1 users browsing this thread. (0 members and 1 guests)