Equivalent in LiveCode to Director Lingo lists
Posted: Tue Sep 23, 2014 9:49 pm
I'm converting a project from Director to Livecode and I have a lot of code that uses Lingo lists. There are linear lists [1,2,3] or ["one","two","three"] and property lists [1:"one",2:"two",3:"three"]. Am I correct that the LiveCode array is the proper equivalent? If so, is there a quicker and easier way to convert than one value and key at a time?
For example, I can do the following:
for this Lingo code:
put [4,4,4,4,4,4] into someVariable
in LiveCode:
put "4,4,4,4,4,4" into temp
repeat with i = 1 to 6
put value(item i of temp) into someVariable
end repeat
This works but is a lot of tedious work for my rather large project.
I hope this makes sense. Any assistance is much appreciated!
For example, I can do the following:
for this Lingo code:
put [4,4,4,4,4,4] into someVariable
in LiveCode:
put "4,4,4,4,4,4" into temp
repeat with i = 1 to 6
put value(item i of temp) into someVariable
end repeat
This works but is a lot of tedious work for my rather large project.
I hope this makes sense. Any assistance is much appreciated!