Setting variable variables
Matthew Broms
mbroms at haloisdg.com
Wed Nov 28 14:38:17 PST 2001
Is it possible to create variables from a retrieved list, such as setting
the following:
Newly retrieved list:
nameList = {"prodNum", "prodPrice"}
valueList = {"abc123", "$49.95"}
Set two new variables based on the above strings:
Local (nameList[1] = 1, nameList[2] = 2)
I want to create and way of dynamically setting offsets in list so I can
refer to them by name verses hard coded offset position as well as the next
time I get my lists, they may have changed (ie. Reversed or more items ==>
nameList = {"prodPice", "prodNum", "introDate"}
price = valueList[prodPrice]
verses
price = valueList[2]
The evaluate verb doesn't work for me (either it can't or I can't figure it
out). If this can't be done this way, is there another methodology which
accomplishes what I want dynamically determined offsets referable to by
easy to understand variable names?
Thanks,
Matt
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.userland.com/pipermail/frontier-users/attachments/20011128/9a26c2b0/attachment-0002.htm
More information about the Frontier-Users
mailing list