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 'Randomise array' function is not an array variable

Warning: The variable passed to the 'Randomise array' function is not 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 Randomise array statement, but the variable used is not an array variable.

More information

The Randomise array statement will take an array variable with several values, and shuffle them into a random order. If the variable used by the statement is not an array variable, then its contents cannot be shuffled.

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 T0531