#(Macro call)
Documentation | Blog | Demos | Support
#(Macro call)
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
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.
Programs with macro references cannot be compiled because the macros take the current references at the time of the compilation.
Example
Example of Using # (Macro call) and <> (Macro name delimiters)
let = "ENT"
Defines the global macro to represent the string ENT. Then the statement
list #s format #Name
is interpreted as
list ENTs format ENTName
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |