6. Embedded QUEL for BASIC : BASIC Variables and Data Types : Variable and Type Declarations : The External Statement
 
Share this page                  
The External Statement
You can inform EQUEL of variables and constants declared in an external module. The syntax for a variable is as follows:
external type identifier {identifier}
The syntax for a constant is as follows:
external type constant identifier {identifier}
Syntax Notes:
1. EQUEL applies the same restrictions on type as VMS BASIC.
2. You cannot declare external functions or subroutines to EQUEL. EQUEL understands only function and subroutine definitions.
The following example illustrates the use of the external statement:
##   external integer empform, infoform     !Compiled forms
##   external single constant emp_minsal