Setting variable variables
Brian V Hughes
brianvh at Dartmouth.EDU
Wed Nov 28 15:03:02 PST 2001
--On 11/28/01, Matthew Broms wrote:
>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)
To do what you want you need to use this notation:
Local ([nameList[1]] = 1, [nameList[2]] = 2)
This will cause Frontier to resolve the list values and then use them
as local variable names.
-Brian
--
Brian V. Hughes <http://www.dartmouth.edu/~comm/>
Webmaster Dartmouth College Computing Services
Webmaster Group Communications Services
More information about the Frontier-Users
mailing list