#(Macro call)

#(Macro call)

Welcome to our Knowledge Base

Documentation | Blog | Demos | Support

< All Topics
Print

#(Macro call)

Marks a call to a macro in an application program.

Syntax

#<macroname>

where

macronameThe 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
Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.

Leave a Reply

Your email address will not be published. Required fields are marked *

en_CAEnglish