<<

Contents

Search

>>

 

PUT_MACROS

 

 

Function

 

 

Syntax:

PUT_MACROS(<ON Macros>,<Type>)

 

<ON Macros>

= <STRING-EXPRESSION>

<Type>

= <NUM-EXPRESSION>

 

 

Meaning:

PUT_MACROS assigns the numbers of the ON <Key> Macros resp. the ON <Event> Macros saved in <ON Macros> to the program internal Macro table.

 

<ON Macros> must have been created with GET_MACROS$.

 

If <ON Macros> contains the empty String "", all ON <Key> Macros resp. all ON <Event> Macros are disabled.

 

PUT_MACROS returns the result –1 if the structure of the parameter <ON Macros> is invalid, otherwise 1.

 

Parameter:

ON Macros

Contains the program internal representation of the ON <Key> Macro or the ON <Event> Macro.

If <ON Macros> contains the empty string "", all ON <Key> Macros or the ON <Event> Macro are deactivated.

Type

0: assign ON <Key> Macros

otherwise: assign ON <Event> Macros

 

Sample:

SAVE$ = GETMACROS$(0) /* Save the current ON <Key> Macros

H% = PUTMACROS("",0)  /* Deactivate all ON <Key> Macros

ON F2 MACRO XY

CALL #10

H% = PUTMACROS(SAVE$,0) /* restore ON <Key> Macros

 

See also:

GET_MACROS$

ON

GET_COLORS$

SET_COLORS

GET_SWITCHES$

SET_SWITCHES