[JW Lua] Iteration of Tables

Finale at web.YOSound.com Finale at web.YOSound.com
Sun Nov 30 20:24:37 CET 2014


Hi Jari,

 

How do I iterate through a table so that the order does not change. In the
attached code using "for k, v in pairs()" I get a different order each time
it is run. If I use "for k, v in pairsbykeys()" it is always in the same
order, just not the order I want. ;) I'd like to get it in the order of the
table. Thanks for all your work and your prompt replies.

 

Best regards,

Bruce

 

-- 

Olson Sound Design, LLC

Bruce C. Olson

8717 Humboldt Avenue North

Brooklyn Park, MN  55444-1320

 

+1 (763) 493-5835 Office

+1 (763) 300-3893 Cell

 

Web Page:        http://www.OlsonSound.com

Business:         mailto:BCOlson at OlsonSound.com

Big Band:          http://www.BRBB.org

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20141130/7fc6dab7/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Document Page Text Table.lua
Type: application/octet-stream
Size: 8082 bytes
Desc: not available
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20141130/7fc6dab7/attachment.obj>


More information about the JWLua mailing list