#(Macro call)

Marks a call to a macro in an application program.

Syntax

#<macroname>

where

macroname

The name of a global or local macro.

Return Value

A macro call returns the current value of the macro or the null string ('').

Comments

This command calls a particular macro in an application program.

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 value of the macro.

A macro acquires values in one of two ways: implicitly, when the software encounters a call to a previously unknown global macro or unassigned local macro, or explicitly, in a LET or INPUT statement or a call to a local macro.

Example

Example of Using # (Macro call) and <> (Macro name delimiters)

let <Fred> = "ENT"

Defines the global macro <Fred> to represent the string ENT. Then the statement

list #<Fred>s format #<Fred>Name

is interpreted as

list ENTs format ENTName