<<

Contents

Search

>>

 

GET_MACROS$

 

 

Function

 

 

Syntax:

GET_MACROS$(<Type>)

 

<Type> = <NUM-EXPRESSION>

 

Meaning:

Returns the internal representation of ON <Key / Event> MACROs as string.

If <TYP> = 0, the ON <Key> MACROs are returned.

If <TYP> <> 0, the ON <Event> MACROs are returned.

 

This function can be used together with the function PUT_MACROS in order to save the current ON <KEY> MACROs of a program, set new macros e.g. for calling a mask with CALL #... and finally restore the original configuration.

 

Parameter:

Type

= 0: ON <Keys> MACROs

<> 0: ON <Event> MACROs

 

Sample:

SAVE$ = GET_MACROS$(0)    /* Save the current configuration

H% = PUT_MACROS("",0)     /* Reset all ON <Key> MACROs

ON F2 MACRO XY

CALL #10

H% = PUT_MACROS(SAVE$,0)  /* Restore the configuration

 

See also:

ON

PUT_MACROS

GET_COLORS$

SET_COLORS

GET_SWITCHES$

SET_SWITCHES