Category: Macro Substitution

The Original Internet Language

About Macros

A macro is a dynamically declared name that represents a character string. When a macro call is encountered in an application program the macro call is replaced by the current character string value of the macro. Macros are sometimes called replacement parameters or substitution variables. The following topics discuss how to work with macros in…
Read more

About Macros

A macro is a dynamically declared name that represents a character string. When a macro call is encountered in an application program the macro call is replaced by the current character string value of the macro. Macros are sometimes called replacement parameters or substitution variables. The following topics discuss how to work with macros in…
Read more

Macro Substitution

A macro can appear anywhere and can be repeated any number of times in an application program. Each time the software encounters a call to the macro, it substitutes the current character string value of the macro. Substitution takes place one command at a time, before each command is executed. To view these substitutions as…
Read more

Macros and Compiled Programs

Macro substitution takes place only when the software is parsing a source (uncompiled) program. During compilation, the software parses the source code and performs macro substitution based on current macro values. The resulting commands are then compile and stored in compiled form. When the compiled program is executed, its source code is not parsed again.…
Read more

How Macros Acquire Values

A macro acquires a value in one of two ways: implicitly when the software encounters a call to a previously unknown global macro, or when a local macro is unassigned in a macro call program explicitly in a LET or INPUT command (global or local macros), or in a call to a procedure (local macros…
Read more

en_CAEnglish