Examples: ToggleCommandBar()

The following example is the command script for the Toolbar_IGSample command. This command is added to the Toolbars submenu in Microsoft Dynamics GP. When a user chooses the command, the script uses the ToggleCommandBar() function to show or hide the toolbar for the sample integration.

local integer nMenuTag, nCmdBarTag, nStatus;

nMenuTag = Command_GetTag(command Toolbar_IGSample);
nCmdBarTag = Command_GetTag(command CL_IG_Sample_CMDBAR);

nStatus = ToggleCommandBar(nMenuTag, nCmdBarTag) of form syCmdBarObj;

Documentation Feedback