Can someone point me to an explanation or tutorial on using
multi-dimensional arrays, and specifically persistence between sessions?
Okay, so I'm a trifle late to the party but I am here now!
I am making no headway at all from such information as I can find in the dox
so obviously I have my
Hi Hugh,
as of Rev 4 (if I recall correctly) you can store the whole array in a custom
property, which you would need to set:
local tArray
put malte into tArray[1][firstname]
put pfaff-brill into tArray[1][lastname]
put linus into tArray[2][firstname]
put pfaff into tArray[2][lastname]
set
I only have time for a quick hint.
I think you need to create each node before defining the next child
level.
Kind of like 'create folder' at each level in the directory.
When I did this a year ago I recall I used nested repeat loops and
the array names in strings. I built the requisite
Jim, your folder analogy is not correct, as this works fine:
put mex into foo[bar][tex]
put foo[bar][tex]
--yields: mex
With multiple arrays, I always run into conceptual problems (aka. brain pain)
because in the example above:
foo is an array (has keys)
foo[bar] is also an array and has keys
Thank you BvG. Persistence by putting an array into a property makes sense
kinda... It was the syntax that had me fooled.
If I have understood the system, then
1. set the dinnerNames[mains] of this stack to tex - good
2. set the dinnerNames[mains][spicy] of this stack to tex - bad!
because
[1]
Yes, you're right because what you're doing is not multidimensional arrays at
all. You're simply using custom property sets and want to store stuff in them.
I did once make an enhancement requests that ask for making arrays and
properties (custom or not) basically be the same, which might that
On Aug 10, 2010, at 12:53 AM, FlexibleLearning wrote:
Can someone point me to an explanation or tutorial on using
multi-dimensional arrays, and specifically persistence between
sessions?
Hi, Hugh. If you'd like to see a script locals persistence toolkit, I'd be
glad to share the code. The