Split, combine ok but where's extract?
b.xavier at internet.lu
Sat Feb 12 00:19:31 CST 2005
combine array with comma,return
split array with comma,return
do somethign like that too?
According to the help docs, the split command strips duplicates and should
be faster than a loop...
This is worth a bit of investigating and testing...
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of
> Dick Kriesel
> Sent: Saturday, February 12, 2005 03:51
> To: How to use Revolution
> Subject: Re: Split, combine ok but where's extract?
> On 2/11/05 5:53 PM, "Mark Wieder" <mwieder at ahsoftware.net> wrote:
> > MisterX-
> > Friday, February 11, 2005, 9:07:06 AM, you wrote:
> > M> Just wondering if there is a simple way to extract the
> list of the
> > M> second key of an array
> > repeat for each line theItem in the keys of array
> > put item 2 of array[theItem] after field "myField"
> > end repeat
> > -- same obviously for item 1
> if you don't want duplicates you could try
> repeat for each line theItem in the keys of array
> put 1 into uniqueSecondItems[item 2 of theItem] end repeat
> put the keys of uniqueSecondItems after field "myField"
> use-revolution mailing list
> use-revolution at lists.runrev.com
More information about the use-livecode