Hello,
I have a program that stores settings in a 1D array. Someone had recommended that to save settings create an .ini file and write to it using IniWrite function. This works great but creates a 2D array. So when I try to recover settings things break because simply deleting a column doesn't convert a 2D to a 1D array, as I had hoped.
Any simple ways of converting a 2D array to a 1D array?
#include <Array.au3>
Local $twoDarray[3][2]
Local $oneDarray[3]
$twoDarray [0][1] = "A"
$twoDarray [1][1] = "B"
$twoDarray [2][1] = "C"
_ArrayColDelete($twoDarray,0)
$oneDarray=$twoDarray; $oneDarray is now a 2D array [3][1] instead of just [3]
_ArrayDisplay($twoDarray)
_ArrayDisplay($oneDarray)