DADiSP Worksheet Functions > Function Categories > Macro and Command File Functions > GETMACRO

 

GETMACRO

Purpose:

Returns information about the components of a macro.

Syntax:

GETMACRO("name", form)

"name"

-

A string, the name of the macro.

form

-

Optional. An integer, representing the form in which the macro is displayed:

0:

body

1:

name

2:

arguments

3:

name + arguments

4:

name + body + arguments

Returns:

A string.

Example:

getmacro("AUTOCOR", 0)

 

returns the string CONV(s, REVERSE(s))/(2*SERSIZE(s))) which is the body of the macro.

 

getmacro("AUTOCOR", 2)

 

returns the string (s), the macro arguments.

See Also:

DEFMACRO

MACREAD

MACROS

MACWRITE