*viz: this is just a look at aspects of Lua, rather than
direct common Ctrlr applications. *
Tables.
big subject, obviously – just from a few checks around
sites. mind boggling diversity of examples out there.
i mean within Ctrlr.
recently was englightened with table.insert. that’s cool.
i’m discovering the consequences of that (you can ‘insert’
onto an existing table, for example, but i’m not sure if
you get a ‘clean’ addition – try ‘dump’ to see results)
so that’s useful for building a table on the fly.
what about ‘getting’ the data for that table afterwards,
for example?
so i tried
‘for i,v in ipairs …’
and i’ve got as far as printing ‘v’ (data/values) to console.
now i’m off to see how getRange works, but i have a feeling
that that is for memory blocks, and these represent the data
in another form.
i have not yet, for example, been able to concatenate these
as strings into a single string. do i even want/need to do
that? (i’m finding out re issues with values vs strings …)
and then: toHexString() producing unexpected results – that
will only work on a memory block, not direct from a table.
anyway: you see the kind of thing…
anyone out there? still on the forum? been pretty quiet lately !