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- [EMAIL PROTECTED] wrote:

Message: 21
Date: Tue, 14 Feb 2006 21:39:56 +0000
From: Martin Baxter <[EMAIL PROTECTED]>
Subject: Re: Split Command
To: How to use Revolution <use-revolution@lists.runrev.com>
Message-ID: <[EMAIL PROTECTED]>
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

_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to