;; 
;;=====================================================================================----- 
;; 
;;FUNCTION       ArrayJoin() 
;; 
;;ACTION         Combines 2 arrays into one 
;; 
;;AUTHOR         Glenn Barnas 
;; 
;;VERSION        1.0 - 2020/08/08 
;; 
;;HISTORY        1.0 - 2020/08/08 - Initial Release 
;; 
;;SYNTAX         ArrayAdd(Array1, Array2) 
;; 
;;PARAMETERS     Array1 - Required - Single-Dimension Array 
;; 
;;		 Array2 - Required - Single-Dimension Array 
;; 
;;REMARKS        Combines 2 arrays into a single array. 
;; 
;;RETURNS        Array - Concatenation of both source arrays 
;; 
;;DEPENDENCIES   none 
;; 
;;TESTED WITH    Any Platform 
;; 
;;EXAMPLES       $Array = ArrayAdd($Array1, $Array2) 
; 
; 
Function ArrayJoin($_Array1, $_Array2)
 
  ; combine both arrays to a delimited string, then split the string on the delimiter 
  $ArrayJoin = Split(Join($_Array1, Chr(30)) + Chr(30) + Join($_Array2, Chr(30)), Chr(30))
 
  Exit 0
  
EndFunction