Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

_ArrayCombine multiple arrays

$
0
0

I have found this UDF on the forum and works grate but i have hit a brick wall 

Func _ArrayCombine(ByRef $array1,ByRef $array2) ; Function to combine 2D arrays     For $i=0 To Ubound($array2,1)-1         ReDim $array1[Ubound($array1,1)+1][4]         $array1[Ubound($array1,1)-1][0]=$array2[$i][0]         $array1[Ubound($array1,1)-1][1]=$array2[$i][1]         $array1[Ubound($array1,1)-1][2]=$array2[$i][2]         $array1[Ubound($array1,1)-1][3]=$array2[$i][3]     Next EndFunc

i need to combine 5 arrays and i have use this UDF like this and everything is fine till one or more arrays are nulll

_ArrayCombine($aResult, $bResult) _ArrayCombine($aResult, $cResult) _ArrayCombine($aResult, $dResult) _ArrayCombine($aResult, $eResult) _ArrayDisplay($aResult)

My question is how to combine my 5 arrays ( $aResult,$bResult,$cResult,$dResult,$eResult) if one or more are invalid ?

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>