Handling of final delimter (was Re: "this me"?)
Mike Kerner
MikeKerner at roadrunner.com
Mon Aug 12 14:11:31 EDT 2013
Mark,
That won't work because LC won't recognize the last item as empty. Thus
put "a," into goop
delete item -1 of goop
put goop
will end up putting empty.
I really want to fix this thing.
On Mon, Aug 12, 2013 at 1:47 PM, Mark Wieder <mwieder at ahsoftware.net> wrote:
> Devin-
>
> Monday, August 12, 2013, 10:30:29 AM, you wrote:
>
> > You know how I get rid of trailing delimiters?
>
> > put line 1 to -1 of tList into tList
>
> > put item 1 to -1 of tItems into tItems
>
> > Kills that dang dangling delimiter dead.
>
> Good one. I just opt for the chomp approach
>
> repeat while item -1 of tList is empty
> delete item -1 of tList
> end repeat
>
> --
> -Mark Wieder
> mwieder at ahsoftware.net
>
>
> _______________________________________________
> 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