Examples: FindCommandInCmdList()


The following example uses the FindCommandInCmdList() function to retrieve the location of the Remove Hold command that appears in the Action Pane for the Customers list in Microsoft Dynamics GP.

local integer Seq;

{Find the Remove Hold command}
seq = FindCommandInCmdList(DYNAMICS,
	LISTID_CUSTOMERS,
	LIST_PRIMARYVIEWID,
	DYNAMICS,
	resourceid(form ListObj_Customers),
	resourceid(command CL_ModifyGroup of form ListObj_Customers),
	DYNAMICS,
	resourceid(form ListObj_Customers),
	resourceid(command Remove_Hold of form ListObj_Customers)) of form syListViewCmdBarObj;


Documentation Feedback