ARRAY COPY

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Array functions >

ARRAY COPY

 

Description

 

Copy SourceArray into TargetArray

 

Syntax

 

ARRAY COPY SourceArray, TargetArray

 

Returns

 

None

 

Parameters

 

Name

Type

Optional

Meaning

SourceArray

Array

No

Name of the variable array containing elements to be copied.

TargetArray

Array

No

Name of the variable array into which copy data.

Attention: this array will be automatically free and resized

 

Remarks

 

SourceArray and TargetArray can be string or numeric arrays with different types: thinBasic will make necessary string/numeric or numeric/string conversion.

 

SourceArray can have multiple dimensions: TargetArray will be re-dimensioned with the same dimensions.

 

Restrictions

 

Only string or numeric arrays are supported.

 

See also

 

LBound, UBound, ARRAY SORT,

 

Examples