Okay, so I got it to work with "Load from JSON string", but, why is it like this? You need DOUBLE QUOTES, like five hundred brackets??? I just. Thank you for the help, but this is absurd..
( for anyone looking for how to get as close to an array literal as you can get in this software:
System -> On start of layout (or whatever proc you want)
-> Array -> Load from JSON string "{""c2array"":true,""size"":[10,1,1],""data"":[[[""words""]],[[""words""]],[[""words""]],[[""magic""]],[[5]],[[""numbers work okay without quotes""]],[[1]],[[2]],[[3]],[[4]]]}"
Seriously though, why does it have all these unnecessary complications? Anyway, you can populate an array like this, if you do the quotes and brackets right, just make sure you do it just so, it'll yell at you if you don't, or just not work.
I still haven't figured out how to load an actual file into the array, but that's fine, this works. It's all in one place which is good enough.
But yeah, thanks, got it working without having to manually add individual values to the array and save and load and save and load and such. Cheers!
Did you check the tutorial section? Did you read the manual?
There are multiple ways to do this, you can use a text file, a ini file, you can write a single array entry, you can even have a variable = "Words, words, magic, 5, words etc".
So many ways - this software is brilliant.
Suggest you add files to your project files,
Here is a tutorialI did awhile ago.
It wasn't written to answer you question, but it does what you need to do.
And here is really simple example...if data isn't going to change, this demonstrates another way to do it...
[attachment=0:o06o51m3][/attachment:o06o51m3]
You don't even need to use the array in above example.
Just put into variable = "words|Words|words|magic|5|19|etc|"
And use tokenat(text,index,seperator)
so tokenat(variable,3,"|") will give you magic as index is 0words,1Words,2words,3(magic)