Setting variable variables
Brian V Hughes
brianvh at Dartmouth.EDU
Wed Nov 28 16:16:17 PST 2001
--On 11/28/01, Matthew Broms wrote:
>I have figured out an alternative, but one I don't care as much for and
>that's building a new table with the key/value pairs. This works fine, but
>I wanted to keep everything just in memory verses utilizing the Frontier DB.
>Plus it's a whole other process which adds to processing time (it's a big
>list).
No problem. At the top of your script define a new local, call it
"varTable". Then do a new (tableType, @varTable).
In your for loop, you can now use varTable.[cellNames[i]] = i, and
then simply refer to varTable.[name] anywhere in your script to
access them. This local table stays completely in memory, and clears
once your script exists. No need to use the Frontier DB at all...
-Brian
More information about the Frontier-Users
mailing list