Random Questions?

Sarah Reichelt sarah.reichelt at gmail.com
Sun Oct 2 18:25:35 EDT 2005


On 10/2/05, Jim Ault <JimAultWins at yahoo.com> wrote:
> And this is *definitely* a case where you should be SURE to reset the
> lineDelimeter to a return character.  All kinds of havoc could ensue if you
> forget to undo this special setting.
>
> I would prefer to use
>    set the itemDelimeter to "|"
> >      put any ITEM of fld "questionList" into fld "question"
>    set the itemDelimeter to ","
>
> since I frequently set the itemDelim to tab (or other), I always assume I
> need to set it before each use.
>

Hi Jim,

Remember that unlike in HyperCard, in Rev, the itemDelimiter is a
local property. It resets at the end of every handler and a changed
setting is not passed to handlers or functions called from a handler
that changed it.

This makes it much less important to reset it after every use, unless
you have long handlers that need to use multiple delimiters, in which
case it might be better to break them up into sub-handlers anyway.

Cheers,
Sarah



More information about the use-livecode mailing list