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: Bob Studer <email@hidden>
- Date: Sat, 19 Mar 2005 09:50:29 -0800
On Mar 19, 2005, at 5:26 AM, cedrik wrote:
Seems i have a problem with variable names.
I have to create new variables with names from the VALUES of other variables.
E.g. I have:
set myVar to “width”
set myValue to 80
Now i wanna have the variable “width” with a value of “80”.
Im kinda stcuk with this simple probelem ;) Applescript ist sometimes weird for a php programmer......
"width" is kind of generic. I bet that there is a property that already has the name "width" in the code's current context. I usually name my variables more individually to avoid these problems. Such as "theWidth" or something like that.
-Bob
PGP: 0x5A969850
---------------------
"After a week with a Windows machine I get the feeling that this system is designed by people who know a lot about computers. Macs, on the other hand, seem to be designed by people who know a lot about people."
- Nigel Kendall, The Times (UK)
_______________________________________________
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