Page 1 of 1

using chunks

Posted: Sun Jul 08, 2007 5:26 pm
by churchken
Hi,

Using a "repeat", it is straight forward to put line 4 to line 150 of fld"text" into a new variable.

For really large sections of text, the repeat loop takes a long time to do the task. Is it possible to use "chunk" to put that same section of text into a new variable with a single line of code?

Thanks for any pointers.

Posted: Sun Jul 08, 2007 7:13 pm
by Mark
Hi Ken,

Doesn't the following line do what you need?

put line 4 to 150 of fld "The Text" into myNewVar

Best,

Mark

chunks

Posted: Sun Jul 08, 2007 7:27 pm
by churchken
Hi, Mark,


Boy, it's always the simplest things that "get ya".

I had tried that approach, but with "lines" not "line" 4 to 150, and it generated an error in the script.

Thanks a bunch.