Jump to content
Sign in to follow this  

split up multi-dimensional arrays (_GrabTable)

Recommended Posts


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]
Return $TempArray

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