put one array after another

Tore Nilsen tore.nilsen at me.com
Wed Aug 10 12:51:23 EDT 2016


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




More information about the Use-livecode mailing list