03-23-2020 05:16 AM
Hi,
I was wandering whether is it possible to load a whole array from a .CSV file in a single line, and what is the correct syntax?
Instead of something like:
<Locals>,Variable Value
myArray[0], 1
myArray[1], 2
myArray[2], 3
Use this: (as you can do in any statement)
<Locals>,Variable Value
myArray,{1,2,3}
Regards,
Israel
Solved! Go to Solution.
03-23-2020 06:57 AM
Meant "wondering" of course, even though I actually wandered through the forum quite a few, seeking for an answer 🙂
03-29-2020 01:01 AM
Update:
Looks like there is a workaround, as I found in these posts:
CSV-with-comma-in-string
Using-the-property-loader-to-load-strings-into-an-array
In brief:
Use a .TXT (tab-delimited) file instead of .CSV (comma-delimited) to load an array definition into a string variable,
then use the Evaluate() function to assign it to the array variable. Voila!