HOW TO

Creating variable arrays with ARC Macro Language

Last Published: April 25, 2020

Procedure

Instructions provided describe how to create single-dimensional arrays for programming with ARC Macro Language (AML).

Solution:

Create single-dimensional arrays using the [VALUE] function. For example:

&SETVAR var1 = 10
&SETVAR var2 = 15
&SETVAR var3 = 25
&DO count = 1 &TO 3
&TYPE [VALUE var%count%]
&END
&RETURN

result:
10
15
25

Article ID:000001263

Software:
  • ArcMap 8 x
  • Legacy Products

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options