ANY-maze Help > The ANY-maze reference > The Protocol page > The elements of a protocol > Testing > Procedures > Writing a procedure using the procedure editor > Errors and warnings while writing a procedure > Warning: The variable passed to the 'Copy array' function must be an array variable

Warning: The variable passed to the 'Copy array' function must be an array variable

Description

This warning is displayed in the list of errors and warnings at the bottom of the procedure editor when the procedure uses the Copy array statement, but one of the variables used (either the variable to copy, or the variable to copy it to) is not an array variable.

More information

If one of the variables used by the statement is not an array variable, then its contents cannot be copied to or from another array. If this warning is ignored, then when the procedure encounters this statement while it is running, it simply won't do anything and will move on to the next statement in the procedure.

To set a variable up as an array variable, click the button on the variable within the procedure itself, or on the Variables tab. When the Variable settings window opens, select the This variable is an array of ... values option, and enter the number of values that there should be in the array.

See also:

 Errors and warnings while writing a procedure 
 Errors and warnings while running a procedure 
 Other statements 
 User-defined variables 
 Variable settings window 

© Copyright 2003-2026 Stoelting Co. All rights reserved

ANY-maze help topic T0535