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

grief with nested for loops and multi-dimensional arrays

$
0
0
Hi guys

Im working on a script to parse a CSV file (delimited with ;'s)

I read the file to an array then i want to use a nested loop to step through the array use stringsplit() to create a second array

thuse far my attemts either return a huge empty array or give an Array variable has incorrect number of subscripts or subscript dimension range exceeded.: error

Could someone cast an eye over my code and tell me what im missing?

[ autoit ]      
Global $oldcomp_Multi_Array[$oldcomp_Array[0]][16] $j=29 For $j = 29 To UBound($oldcomp_Array)-1       $tmp=stringSplit($oldcomp_Array[$j],";")       for $t = 1 to UBound($tmp)-1            $oldcomp_Multi_Array[$j][$t] = $tmp[$t]            Next      Next _ArrayDisplay($oldcomp_Multi_Array)

Thanks

Grant

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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