Re: dynamic variables
Re: dynamic variables
- Subject: Re: dynamic variables
- From: Dave Stewart <email@hidden>
- Date: Thu, 24 Jul 2003 09:52:23 -0700
On Thursday, July 24, 2003, at 09:18 AM, jay pondered:
Thanks for your reply jj.
I'm not sure if that is what I am looking for. It could be better
described with an example: My program is going to get 100 numbers
while it is running (say from the user). I need to save all 100
numbers. Instead of defining 100 variables outright I want my script
to create a new variable every time it receives a new number. Thus my
program would start with 0 number variables and end with 100 variable
numbers.
Any insight is appreciated,
-j
This just screams array (uh, I mean list) to me. You may even be able
to allocate it dynamically, but I don't have enough experience with AS
to help much there.
I would think of doing something like declaring an array (dang, I mean
list again. Can you tell I'm a C/Java trained fool?:), and dynamically
allocating each element as needed. I would think that possible, but I
haven't tried it myself.
Just hoping to plant a seed here, I may have missed the point entirely
(if so, I apologize).
Dave Stewart
Aqua-flo Supply (Goleta)
email@hidden
Law of Probability Dispersal:
Whatever it is that hits the fan
will not be evenly distributed.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.