Re: "do" statements and value function

2011-06-21 Thread Francis Nugent Dixon
Hi from Beautiful Brittany, I agree with Tim. Firstly, I use "Do" functions every day, and run up "Do" statements of many lines (building it up in a variable). effectively making mistakes in the generation until I get it right ! Couldn't do without the "Do" statement, but I guess that many Live

Re: "do" statements and value function

2011-06-20 Thread Timothy Miller
Okay, I get it now. Nice little essay, Jacque! Many thanks to Jacque and others on this thread. Tim On Jun 19, 2011, at 8:48 PM, J. Landman Gay wrote: > On 6/19/11 4:10 PM, Timothy Miller wrote: > >> Is it true that the "do" command and the "value" function perform >> about the same tasks in

Re: "do" statements and value function

2011-06-20 Thread Mike Bonner
. Think the OP was asking about what do can do vs the other mentioned options, so I was pointing out something do could do with its vudu, but I'd use arrays too, just like you, oops gotta run, I'm overdue. On Mon, Jun 20, 2011 at 8:28 AM, Richard Gaskin wrote: > Mike Bonner wrote: > > Say you ha

Re: "do" statements and value function

2011-06-20 Thread Richard Gaskin
Mike Bonner wrote: Say you have an unspecified number of "things" you want to put into their own variables (yeah, I know, use an array, but for example purposes arrays don't exist) So, if you want to put each line of a random number of lines into its very own variable, this is where the example

Re: "do" statements and value function

2011-06-19 Thread J. Landman Gay
On 6/19/11 4:10 PM, Timothy Miller wrote: Is it true that the "do" command and the "value" function perform about the same tasks in different ways? I.e., is it true that you can avoid "do" by judicious use of "value"? They are for different purposes and not really interchangeable. The value f

Re: "do" statements and value function

2011-06-19 Thread Mike Bonner
Put value(x) into tNumberOfRecords ? isn't exactly what the example I mentioned does. (and this is where my dictionary docs seem to be wrong) Say you have an unspecified number of "things" you want to put into their own variables (yeah, I know, use an array, but for example purposes arrays don't

Re: "do" statements and value function

2011-06-19 Thread Björnke von Gierke
On 20 Jun 2011, at 00:58, Timothy Miller wrote: > Are there things you can do with "do" that you can't do with "value"? Yes. for example these things can't be done with value: do "delete graphic 1" repeat for each item myOtherVar in "a,b,c,d,e" do "put myVar into myOtherVar" end repeat genera

Re: "do" statements and value function

2011-06-19 Thread Timothy Miller
Hi Mike, Thanks again. On Jun 19, 2011, at 2:52 PM, Mike Bonner wrote: > I don't know much about *do*, (I have been able to mostly avoid it so far) > but there are cases where it does seem to be the right tool for the job. > > The example of one of the more useful possibilities with do would be

Re: "do" statements and value function

2011-06-19 Thread Mike Bonner
I don't know much about *do*, (I have been able to mostly avoid it so far) but there are cases where it does seem to be the right tool for the job. The example of one of the more useful possibilities with do would be the creation incremented variable names. The example in the dictionary though, s

Re: "do" statements and value function

2011-06-19 Thread Timothy Miller
Aha! Didn't know about the merge function. Useful information. Thanks, Mike. I'm still wondering about the question at the top of my original message. I'm trying to understand the "do" command better. Is it true that the "do" command and the "value" function perform about the same tasks in diff

Re: "do" statements and value function

2011-06-19 Thread Mike Bonner
This might be easier to do with merge. As an example: *function resolveValue mySillyVar* * repeat until mySillyVar contains "[[" -- when merge can't replace the value inside brackets they are left* * put mySillyVar into mySillyTmp -- mySillytmp is the working var* * put "[[" before my

"do" statements and value function

2011-06-18 Thread Timothy Miller
In the process of getting a slightly tricky script to work, I've been pondering the "do" command and the native value function. I've made an inference. I suspect one could get along without the "do" command by judiciously employing the value function, e.g., value(foo) or "the value of foo" I h