keeping keys of an array in the order they came in?

Klaus major-k klaus at major-k.de
Sat Aug 19 07:33:54 EDT 2017


Hi dfriends,

need a little help, I am filling an array (to eliminate doublettes)
and really need to keep the order of the keys as they came in.

Example:
...
put "60,30,40" into tK
repeat for each item tItem in tK
put "sdsdsdsddsd" into tArray[tItem]
end repeat
put the keys of tArray
...
Now I would like to get:
60
30
40

This is just an example, I cannot control the content of tK.
Know what I mean?

Any hints very welcome, thank you!


Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the Use-livecode mailing list