![]() |
standard object functions, problem with multidimensional array/list
I'm trying to make a rank database, and so I made a two dimensional string array.
this.arr[0] in this script would be acting as an account list this.arr[1] would be acting as a sort value. When I was going to sort, I wanted to remove the element and then simply reinsert it. However, something wasn't working so I made this test. My problem is not being able to use these operators on an array dimension. It's not hard to script something to replace it at all, but it just seems like it should work to use these functions on a specific dimension of an array. PHP Code:
|
Should be this.arr = {{0,1,2,3},{4,5,6,7}}; I guess ?
|
Quote:
arr=new[2] arr[0].add(stuff) arr[1].add(stuff) |
A well known problem yes, it is not telling the 'parent' (next lower dimension) that it has been updated. That's why it's not displaying the right stuff when being output as string, will check if this can been fixed soon.
|
Quote:
|
| All times are GMT +2. The time now is 06:02 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.