Add Method

object.Add(identifier as Long, command as String, category as String, description as String)

Adds a new command to a voice-command menu created by the MenuCreate method.

· Example:

Call Vmenu.Add(CmdNum, "Copy")

object

Voice-menu object.

identifier

Unique number for the command. The CommandSpoken property is set to this number when the command is recognized.

command

Voice-command string — for example, "Open the file".

category

String that indicates the category to which the command belongs. Commands in a voice menu should be organized in different categories to help the user browse through lists of commands more easily. This is similar in concept to Windows menus, which organize commands under menu names such as "File," "Edit," "View," and so on. For best results, you should use 20 or fewer categories.

description

String that describes the action performed by the command.

The Add method calls the IVCmdMenu::Add member function to add the command to the menu.