Code : Tout sélectionner
Func test2()
;retourner un tableau à plusieurs dimensions
$iRowCnt=50
$iColCnt=100
Local $avRET[$iRowCnt + 1][$iColCnt + 1] ;RAPPEL, je peux transformer dynamiquement les dimensions via ReDim
$avRET[0][0] = $iRowCnt
$avRET[0][1] = $iColCnt
; Read data to array
For $r = 1 To $iRowCnt
For $c = 1 To $iColCnt
$avRET[$r][$c] = Random()
Next
Next
;Return data
Return $avRET
EndFunc
_ArrayDisplay(test2(),"LE TABLEAU 2 DIMENSIONS")