using "split" to build multi-dimensional arrays ?
MisterX
b.xavier at internet.lu
Tue Jun 7 14:03:16 EDT 2005
no, set you itemdelimiter before you split and you will see why.
The comma is the default itemdelimiter.
Split uses the itemdelimiter to split your array into "parseable" items.
so it you have commas in your arrays, it can lead to confusions somewhere...
cheers
Xavier
> -----Original Message-----
> From: use-revolution-bounces at lists.runrev.com
> [mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of jbv
> Sent: Tuesday, June 07, 2005 20:01
> To: How to use Revolution
> Subject: Re: using "split" to build multi-dimensional arrays ?
>
> >
> >
> > Better use a different char to combine the array if you
> want to split
> > it later back into an array.
> > You used the comma already as an itemdelimiter.
> >
>
> Thanks for the tip, but why do array delimiters have to be
> different from itemdelimiter ?
> There's nothing on this in the documentation...
> Is it a known bug ?
>
> Thanks,
> JB
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list