Split Command

Gregory Lypny gregory.lypny at videotron.ca
Tue Feb 14 19:40:42 EST 2006


Thanks, Martin.  That's exactly what I needed to know.  I recall now  
that the order of the keys is a different story.

	Gregory

On Tue, Feb 14, 2006, at 5:41 PM, use-revolution- 
request at lists.runrev.com wrote:

> Message: 21
> Date: Tue, 14 Feb 2006 21:39:56 +0000
> From: Martin Baxter <mb.ur at harbourhost.co.uk>
> Subject: Re: Split Command
> To: How to use Revolution <use-revolution at lists.runrev.com>
> Message-ID: <43F24E2C.4070302 at harbourhost.co.uk>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Gregory Lypny wrote:
>> Hello everyone,
>>
>> If I create an array from a list field using the split command and
>> return as the only delimiter, am I guaranteed that the number of each
>> line becomes its own array element key?  That is, does line 1 become
>> array element 1, line 2 array element 2, and so on?  This seems to be
>> the case in a couple of experiments I've done.
>>
>> Gregory
>
> Yes, that's my experience, and I've done that a lot. But in case  
> you are
> expecting the array keys to be numerically ordered, note that you  
> should
> not rely on that. If you loop through the elements later you may find
> the order of keys is not what you are expecting, especially if you  
> have
> edited the array in the meantime.
>
> Martin Baxter




More information about the use-livecode mailing list