ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Running procedures > Errors and warnings while running a procedure > Warning: The sizes of the source and destination arrays passed to 'Copy array' did not match

Warning: The sizes of the source and destination arrays passed to 'Copy array' did not match

Description

The Copy array statement copies the contents of one array variable into another array, overwriting what is already there. This warning is generated if the sizes of the arrays are not the same, i.e. they don't have the same number of values.

Example

The following example shows the Copy array statement in use:

  

  

Figure 1. Copying the contents of an array variable into a different array variable.

More Information

If this warning is generated, the procedure will still continue running and will copy what it can of the array. If the array being copied from is larger than the array being copied to, then the extra values will be ignored and not copied. If the array being copied from is smaller than the one being copied to, then the extra array indexes will still contain their previous values.

See also:

 •Errors and warnings while writing a procedure 
 •Errors and warnings while running a procedure 
 •Other statements 
 •User-defined variables 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0556