tag:blogger.com,1999:blog-3934968797359169188.post1944888265256538955..comments2024-03-27T19:31:04.733-07:00Comments on LearningLiveCode: Lloyd's Word Cloud: What a Difference "Repeat for Each" Can MakeLloyd Rieberhttp://www.blogger.com/profile/16337150259689860110noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-3934968797359169188.post-15274112144600100752015-10-12T10:30:51.760-07:002015-10-12T10:30:51.760-07:00Now replaceText:
on mouseUp
put "" i...Now replaceText:<br /><br />on mouseUp<br /> put "" into fld 2<br /> put replaceText(fld 1, space,return) into fld 2<br /> answer the number of lines of fld 2<br />end mouseUp<br /><br />You might also play around with the new 'trueword' vs. 'word':<br /><br />repeat for each trueword varWord in field 1 <br /><br />Each one of these approaches will produce a JimLhttps://www.blogger.com/profile/15405325877327005299noreply@blogger.comtag:blogger.com,1999:blog-3934968797359169188.post-3897186610437926612015-10-12T10:18:39.443-07:002015-10-12T10:18:39.443-07:00Then there's:
put fld 1 into temp
replace spa...Then there's:<br /><br />put fld 1 into temp<br />replace space with return in temp<br />put temp into fld 2JimLhttps://www.blogger.com/profile/15405325877327005299noreply@blogger.comtag:blogger.com,1999:blog-3934968797359169188.post-37456210979590100742015-10-12T10:16:12.229-07:002015-10-12T10:16:12.229-07:00Hi Lloyd,
You'll get even more of speed boost...Hi Lloyd,<br /><br />You'll get even more of speed boost by manipulating a variable instead of a field.<br /><br />on mouseUp <br /> put empty into field 2 <br /> repeat for each word varWord in field 1 <br /> put varWord & return after temp <br /> end repeat <br /> put temp into field 2<br /> end mouseUp <br />JimLhttps://www.blogger.com/profile/15405325877327005299noreply@blogger.com