ExistsForUserID()

Examples


The ExistsForUserID() function defined in the syCmdBarObj form is provided by Microsoft Dynamics GP so you can easily determine whether a specific toolbar exists for a user.

Syntax

ExistsForUser(UserID, ParentDictID, ParentFormID, ParentCmdID)

Parameters

UserID – A string that specifies the user for whom the existance of the toolbar will be examined. Specify the empty string ("") to examine the default set of toolbars.

ParentDictID – The ID of the dictionary that contains the command list for the toolbar that is being examined.

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

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

Return value

A boolean. The value true indicates that the toolbar exists for the specified user, while false indicates it does not.

Comments

This function does not indicate whether a toolbar is visible. Use the CmdBarIsVisible() function to find out whether a toolbar is visible.


Documentation Feedback