FIND_MACRO_FROM_COMMAND

Checks if a macro is defined using the specified user_entered_command (command_str). Returns its KEY if one exists; otherwise, it returns None.
FIND_MACRO_FROM_COMMAND does not check to determine if the user_entered_command conflicts with the built-in Adams View command language.

Format

FIND_MACRO_FROM_COMMAND(command_str)
 
command_str
A string containing the user_entered_command of interest.

var set var=mac_str &string=(eval(FIND_MACRO_FROM_COMMAND("mdi acontrols info")))
     if cond=(mac_str != "")
     ! a macro already exists for those commands....
     ! mac_str contains the name of the existing macro
   else
     ! no macro exists for those commands
   end