1 Reply Latest reply: May 27, 2014 5:24 AM by Russ Ward RSS

    Command object Delete() and CommandNum property issues

    Russ Ward Community Member

      Hi,

       

      FM11. I can't seem to get the Delete() method to work on commands, nor can I retreive the proper CommandNum property. For example:

       

      cmd = DefineCommand(1111, "TestScriptCommand", "TestScriptCommand", "^q");

      alert(cmd.CommandNum);

       

      ...the message box displays some other number, like 48 or something. Then, cmd.Delete() seems to have to effect, because the command stays active and remains on any menus where I placed it.

       

      the Command() callback works OK. It properly executes on 1111 for the command.