FindCommandInCmdList()

Examples


The FindCommandInCmdList() function defined in the syListViewCmdBarObj form in Microsoft Dynamics GP is used to find the location of a command or command list that is used for the Action Pane in a list.

Syntax

FindCommandInCmdList(product_ID, list_ID, view_ID, ParentDictID, ParentFormID, ParentCmdID, CmdDictID, CmdFormID, CmdID)

Parameters

product_ID – The ID of the dictionary that contains the list for which a command list is being queried.

list_ID – An integer specifying the ID of the list for which a command in the Action Pane is being queried.

view_ID – An integer specifying the view for which the command list is being queried. Use the constant LIST_PRIMARYVIEWID to indicate the primary view for the list.

ParentDictID – The ID of the dictionary that contains the command list that is being examined. Use the constant DYNAMICS to specify the Microsoft Dynamics GP main dictionary.

ParentFormID – The resource ID of the command form that contains the definition of the command list that is being examined.

ParentCmdID – The resource ID of the command list that is being examined.

CmdDictID – The ID of the dictionary that contains the command whose location is being examined.

CmdFormID – The resource ID of the command form that contains the definition of the command whose location is being examined.

CmdID – The resource ID of the command whose location is being examined.

Return value

An integer that specifies the location (sequence number) of the specified command. The value 0 indicates the item was not found in the command list.


Documentation Feedback