Jump to content

split up multi-dimensional arrays (_GrabTable)


beestinga
 Share

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]
    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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...