First 1000 characters without loop?

Mike Kerner MikeKerner at roadrunner.com
Thu Jun 22 14:39:19 EDT 2017


chunks make me happy.
actually, any time i have to parse a hornet's nest of text, this language
makes me happy.

On Thu, Jun 22, 2017 at 2:17 PM, Mark Talluto via use-livecode <
use-livecode at lists.runrev.com> wrote:

> On Jun 22, 2017, at 11:03 AM, Rick Harrison via use-livecode <
> use-livecode at lists.runrev.com> wrote:
> >
> > I have a string variable which contains over 2500 characters.
> > I only want to grab the first 1000 characters of that string.
> > Rather than looping 1000 times to grab each character
> > is there a way to just grab the first 1000 efficiently in
> > one big chunk?
> >
> > Thanks,
> >
> > Rick
>
> Hi Rick,
>
> put char 1 to 1000 of tOriginalVar into tNewVar
>
>
> Best regards,
>
> Mark Talluto
> livecloud.io <http://livecloud.io/>
> nursenotes.net <http://nursenotes.net/>
> canelasoftware.com <http://www.canelasoftware.com/>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list