The INPUT command prompts the user with text and waits for user input to the EASI variables. If ONERROR is specified, it overrides normal error reprompting.
INPUT "text" locvar [,locvar,...] [ONERROR statement] "text" - text string used for prompt locvar - EASI string or EASI numeric variables, or a parameter (see Note) ONERROR - error condition handler
For numeric variables, the input provided by the user is parsed as a comma separated series of expressions. Each of the expressions is evaluated before being assigned to the corresponding numeric variable. If there is an error evaluating any of the expressions and an ONERROR statement is available, it will be invoked. ONERROR statements are never invoked for character input.
Example:
input "Enter the X,Y location in UTM Metres" UTMX, UTMY
Note: if a numeric parameter is listed in INPUT list, the INPUT command considers it to be a scalar and inputs the first value only making the other values undefined.
Note 2: numeric and string variables cannot be mixed in the same INPUT statement.
© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.