I have a table that has 3 columns and a single row of values and I am trying to create an Associative array from it,
I have tried this:
Names Default To Here( 1 );
dt = Current Data Table();
keysList = dt << Get Column Names(string);
tablData = Associative Array();
For(i=1, i <= N Items(KeysList), i++,
tablData<< Insert(KeysList[i])
); //end of For
tablData << Get Values;
The array is created but all the values are => 1.
I was expecting : tablData = ["deep" => 40, "length" => 20, "width" => 10];
I will appreciate your help fixing my code.