DeleteCommand method

Applies to

This method deletes a command and removes it from the user interface of a ReadSoft Invoices module. Any toolbar icons and shortcut keys for the command are also removed.

Built-in commands that you can delete using DeleteCommand in these ReadSoft Invoices modules:

Scan

Interpret and Transfer

Optimize

Verify

Manager

If you want to re-add a deleted command, you must close and restart the ReadSoft Invoices module.

Syntax

object.DeleteCommand( CommandToDelete As String)

Part

Description

object

An expression evaluating to an object of type Application, InterpretApp, VerifyApp, ManagerApp, ScanApp, OptimizerApp, TransferApp.

CommandToDelete

The name of the command to remove.

Note Eilocal.iniEilocal.ini. For more information, refer ReadSoft Invoices INI Help. For example, to remove the Save command from the File menu, use this VB code:

Call Application.DeleteCommand("File-Save")

Error output

Description

CommandNotFound

The command specified by CommandToDelete is neither a built-in command nor an added command.

Related topics

AddCommandToMenu

AddCommand

InitUserDefinedMenu