put one array after another

Matt Maier blueback09 at gmail.com
Wed Aug 10 13:05:05 EDT 2016


Thanks Tore, yeah that works. I was just curious if there was a way to do
it directly. Anytime the syntax is simpler there are fewer chances to make
a mistake.

I found "append" in the dictionary but it's not really documented and I
couldn't get a script to compile with it.

On Wed, Aug 10, 2016 at 7:51 PM, Tore Nilsen <tore.nilsen at me.com> wrote:

> You could try this, it works if the array is declared global or local, and
> should work if  the arrays are script local if both arrays are constructed
> within the same handler
>
> repeat for each key tKey in tSecondArray
>
> put tSecondArray[tKey] into tFirstArray[tKey]
>
> end repeat
>
>
> Regards
> Tore
>
>
> > 10. aug. 2016 kl. 18.41 skrev Matt Maier <blueback09 at gmail.com>:
> >
> > Is there a command to merge two array variables into one?
> >
> > Example:
> >
> > tFirstArray[tom] = mot
> > tFirstArray[jane] = enaj
> >
> > tSecondArray[bill] = llib
> > tSecondArray[name] = eman
> >
> > put tSecondArray after tFirstArray
> >
> > tFirstArray[tom] = mot
> > tFirstArray[jane] = enaj
> > tFirstArray[bill] = llib
> > tFirstArray[name] = eman
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list