Re: Creating variables with names from other variable values ?
Re: Creating variables with names from other variable values ?
- Subject: Re: Creating variables with names from other variable values ?
- From: cedrik <email@hidden>
- Date: Sat, 19 Mar 2005 15:33:46 +0100
Already checked the language guide, the scope of variables , concatenation
etc.
Ive come across something like this:
(myVar as string) but this wont work either.
Maybe theres something like:
set {""&myVar} to myValue - but i cant find it !
On 3/19/05 2:44 PM, "Doug McNutt" <email@hidden> wrote:
> At 14:26 +0100 3/19/05, cedrik wrote:
>> set myVar to "width"
>> set myValue to 80
>> Now i wanna have the variable "width" with a value of "80".
>
> set width to 80
>
> is the obvious answer but I think that's not what you mean. Name - value
> pairs, as in environment variables and HTTP POST and GET protocols are
> different.
>
> Have a look at the AppleScript record format. It's a bit like a list and a bit
> like a perl hash. The AppleScript Language Guide is a start.
>
>> Applescript ist sometimes weird for a php programmer......
>
> Ditto for FORTRAN, perl, C, C++, Basic, MPW . . . . .
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden