Split is Behaves Unexpectedly?

Web Admin Himalayan Academy webadmin at hindu.org
Tue Feb 19 15:48:12 EST 2008


Mark Smith wrote:
> However, the solution is very simple:
>
> repeat for each line tLine in tList
>   put tLine into tempLine
>   <doSomething to tempLine>
>  end repeat   
>
Excellent! I knew it was something simple... split is too important to 
be broken.  And I can understand the contraints (if you think of it from 
a binary point of view.. pointers and all...)

Thanks Mark...

>
> On 19 Feb 2008, at 12:37, Björnke von Gierke wrote:
>
>> Yes this is completely counter intuitive, and completely stupidly 
>> broken from a user perspective:
>> http://quality.runrev.com/qacenter/show_bug.cgi?id=3036
>>
>> On 19 Feb 2008, at 03:15, chris bohnert wrote:
>>
>>> from the docs on repeat foreach:
>>>
>>>  Important!  You cannot change the labelVariable in a statement 
>>> inside the
>>> loop. Doing so will cause a script error. You can change the content 
>>> of the
>>> container, but doing so will probably produce unexpected results.
>>>
>>>
>>> -- 
>>> cb
>>>
>>> On Feb 18, 2008 7:40 PM, Sivakatirswami <katir at hindu.org> wrote:
>>>
>>>> go stack url
>>>> "http://www.himalayanacademy.com/runrev/stacks/TestSplitData.rev"
>>>>
>>>> turns out it is skipping every other line in the input data.
>>>>
>>>>
>




More information about the use-livecode mailing list