Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Multi-Dimensional Arrays (https://forums.graalonline.com/forums/showthread.php?t=86512)

Novice 06-24-2009 08:12 AM

Multi-Dimensional Arrays
 
Just a quick question,
Are there 3x-dimensional arrays? I know there are 2x-dimensional arrays (this.array[0][2]), but I'm not sure if there are 3x-dimensional arrays (this.array[0][2][1]). I'm working on a database that I don't really want to reorganize without knowing this first.

For example:
PHP Code:

this.array = {
  { 
"Boo","Bar",{"BazBoo","BazBar"},"BooBar" },
  { 
"Bar","Baz",{"BooBar","BooBaz"},"BarBaz" }
}
return 
this.array[0][2][1]; 

Would the returned string be BazBar?

napo_p2p 06-24-2009 08:53 AM

Should work.

Just tried it, and it does.

Robin 06-24-2009 11:41 AM

Theorehtically they are "Multi-dimensional", and you would be able to store an unlimited amount of arrays in each other.

xXziroXx 06-24-2009 02:22 PM

You can have fivehundredsixtytwo dimensional arrays and beyond as far as I know.

Robin 06-24-2009 03:08 PM

Quote:

Originally Posted by xXziroXx (Post 1501392)
You can have fivehundredsixtytwo dimensional arrays and beyond as far as I know.

Wonder if I should just repeat everything you say as well?

Novice 06-24-2009 11:01 PM

Thanks :)


All times are GMT +2. The time now is 07:33 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.