Show / Hide Table of Contents

MapArr


General Action Statement

Starting with the variable you specify, the MapArr statement maps each individual array cell to a unique variable (e.g., if you define 12 cells for the array, the array maps to 12 variables). To display the cell value of a mapped array, create a variable graphic for the variable to which you mapped the array cell.

Syntax

MapArr <array name>{TO <variable name>}

Examples

MapArr Array1 TO Var10
MapArr Array5

Parameters

<array name>

Map, unmap, or remap this array. The brackets, [ ], are unnecessary after the array name in the statement.

<variable name>

The optional variable name to map the first cell in the array. If you do not specify a name, ProModel unmaps the array from the variables.

Remarks

ProModel collects statistics for an array cell through the variable to which you mapped the cell. (Choose "Basic" or "Time Series" statistics for a mapped variable, then view the variable in the Statistics Output program.) The initial value of the array cells are not written to the variables. Only changes to the array are recorded.

Changing a mapped array cell value changes the value stored in the array cell and the variable value to which you mapped the specific cell. Changing the value of a variable, however, changes ONLY the variable value and NOT the cell value of the mapped array cell. Also, when you use a mapped array in an expression, the array returns the value of the variable mapped to it.

In This Article
Back to top Generated by DocFX