The GLOBAL command declares EASI variables of the requested or default type in a manner similar to LOCAL; however, with GLOBAL the variables will persist after the current procedure or function terminates. They can also be accessed from any function or procedure.
GLOBAL [type] name[(array_size)] [,[type] name[(array_size)],...] type - type of global EASI variables to declare name - names of EASI variables to declare array_size - number of entries in the array
Default type of a variable is double. Possible types include:
byte - a single unsigned byte char - a single character (1 byte) double - an 8 byte double precision floating point value float - a 4 byte floating point value integer(int) - a signed 4 byte integer mstring - a multi-line string array (no arrays) pointer(ptr) - a generic memory pointer string - an arbitrarily long string variable (no arrays) mvar - modeling intermediate array Vertex - a structure with an x, y and z field. GeoInfo - a structure to hold projection information
Example:
The following example declares a globally available array of integers with 256 elements called "img_lut".
global integer img_lut[256]
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.