613-518-1166 info@zimdatabases.com

ZIM Language Reference

#(Macro call)

< All Topics

#(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 = “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%
How can we improve this article?
Table of Contents