Sign in to follow this  
Followers 0
beestinga

split up multi-dimensional arrays (_GrabTable)

1 post in this topic

Func _GrabTable($oArray,$oDimension)
Local $TempArray[UBound($oArray, 2)][UBound($oArray, 3)]
For $x = 0 To UBound($TempArray, 1) - 1
    For $i = 0 To UBound($TempArray, 2) - 1
        $TempArray[$x][$i] = $oArray[$oDimension][$x][$i]
    Next
Next
Return $TempArray
EndFunc

Pretty bare-bones stuff. Just tell it which 3-d array you want to grab a table from, and which 2D array you want, and it'll output it.

Linux wrote this. I just put it into a function in case anyone out there wants to use it.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0