>&& Creating a two dimensional array with 3 rows and storing strings to the elements >myArray = {{'Value 1','Value 2'}, {'Value 3', 'Value 4'}, {'Value 5','Value 6'}} >Not Fox. Javascript, Python, probably many others.
text to lcA noconsole value1, value2 value3, value4 value5, value6 endtext n=alines(aRows, lcA) dime myA(n,2) for i=1 to n myA[i,1]=getwordnum(aRows, 1, ", ") myA[i,2]=getwordnum(aRows, 2, ", ") endforAs you see, it isn't that long (I didn't mind typing it :), and the nice part is that you can edit the list at will, including any way to sort it (often I get those lists from somewhere using _Vfp.datatoclip(,,3) and then paste them into code). Sometimes the delimiter is a comma, sometimes a tab, sometimes there's a column of numbers - it depends, but the principle is the same.