# CATS

Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

# Description

The CATS function concatenates the corresponding elements in two dynamic arrays. The function usually takes the form:

CATS(DynArr1, DynArr2)
1

Where DynArr1 and DynArr2 are dynamic arrays.

# Note

If one dynamic array supplied to the CATS function is null then the result of the CATS function is the non-null dynamic array.

An example of use is as:

one_array = "a" : @SM : "b" : @VM : "c": @VM : "d"
another_array = "x" : @VM : "y" : @SM : "z"
CRT "Result of CATS(one_array, another_array) is " : OCONV(CATS(one_array, another_array), 'MCP')
1
2
3

to display:

Result of CATS(one_array, another_array) is ax\b]cy\z]d
1

Go back to jBASE BASIC

Go back to Programmers' Reference Guide