The ScBar_ItemExists() function indicates whether the specified shortcut has been added to the Shortcut Bar.
ScBar_ItemExists(type, name, shortcut_display_name)
• type – An integer indicating whether the shortcut is for a specific user or for a specific user class. Use one of the following constants (which are part of the syScBarObj form):
Constant |
Description |
---|---|
scgPERSONAL |
The shortcut is for a specific user. |
scgUSERCLASS |
The shortcut is for a specific user class. |
• name – A string specifying the user name or user class which is being examined to find out whether the shortcut exists.
• shortcut_display_name – A string containing the text of the shortcut to search for.
A boolean. True indicates the shortcut exists, while false indicates it does not.