User Guide definitions combine to produce a splitting headache

Joe Lewis Wilkins pepetoo at cox.net
Mon Sep 22 21:26:45 EDT 2008


No Doubt you're right, Jim; but sure not very intuitively worded.  
Seems like it should be the way the Guide now says it is. I guess it  
depends on what you think the words split and combine imply.

Joe Wilkins

On Sep 22, 2008, at 5:25 PM, Jim Ault wrote:

>> The definitions are reversed, right?
> Yes,
> the split command creates the array and
> the combine command converts an array to text
>
> put "vanilla' & tab & "ice cream" into banana
> put "chocolate" & tab & "ice cream" into line 2 of banana
> put "dairy" & tab & "whipped cream" into line 3 of banana
> put "strawberry" & tab & "ice cream" into line 4 of banana
> put "fudge" & tab & "topping" into line 4 of banana
> put "cherry" & tab & "on top" into line 4 of banana
> split banana using cr and tab -- yields and array with the keys of
>
> vanilla
> chocolate
> dairy
> strawberry
> fudge
> cherry
>
> so that   banana["cherry"] is "on top"
>
> Jim Ault
> Las Vegas






More information about the use-livecode mailing list