#EXPAND (expand a user defined macro)

Top  Previous  Next

 

#EXPAND ( %macro name )

#EXPAND

Expands a user defined macro.

%macro name

A previously declared macro symbol.

#EXPAND is used to expand a previously defined macro into the generated source code. Using #DEFINE and #EXPAND to define and expand macros for commonly used code sections will lead to cleaner template code while hiding unneeded target code from immediate view.

Example:

#EXPAND(%InRangeCheck)

 

The above template code will cause the following code to be generated:

 

 IF %ControlUse <= TODAY()

  SELECT(?%ControlUse)

 END

See Also:     #DEFINE