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

bug and suggested fix in _FileWriteFromArray

$
0
0
hello all,

note that when calling _FileWriteFromArray with a 2D array, only the first 2 columns are written to file.
I can't imagine why should this behavior be desired, so I consider this a bug.

CAUSE:
in the UDF "File.au3", line 271 (beginning of the internal loop of columns) limits the scan of dim2 to the number of dims (i.e. 2) instead the number of columns:

For $y = 1 To $iDims


SOLUTION:
change the line to:

For $y = 1 To UBound($a_Array,2) - 1


this works for me, the developer may want to integrate it in the next version.
best regards,
Or

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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