Of course. Another example of engaging fingers before brain.
And there is that pressure to be the first to respond. I think there should
be a LC support group for that condition.
Craig
In a message dated 1/26/11 12:04:57 AM, jac...@hyperactivesw.com writes:
> Except that wordOffset looks for
On 1/25/11 9:57 PM, dunb...@aol.com wrote:
This should be done with the wordoffset function, using the "words to
skip" to advantage.
Except that wordOffset looks for a string match, and we're looking for a
number of words instead. Your actual example works.
It wasn't clear to me whether th
On 1/25/11 6:20 PM, John Patten wrote:
I'm trying to divide a paragraph into random chunks, but I'm not quite
sure how to do it.
Here's what I'm thinking:
With some minor revisions your script will work but it isn't as
efficient as it might be.
put the text of cd fld "paragraphContainer"
This should be done with the wordoffset function, using the "words to
skip" to advantage.
But this more readable. I had a field "source" with some text, and a fld
"theResults". In a button script:
on mouseUp
put "" into fld "theResults"
put fld "source" into temp
repeat while the num
Hi All...
I'm trying to divide a paragraph into random chunks, but I'm not quite
sure how to do it.
Here's what I'm thinking:
put the text of cd fld "paragraphContainer" into tParagraph
put the number of words in tParagraph into tWordCount
put random(10) into tRandomGroup --determinesh