ScBar_ItemExists

Examples


The ScBar_ItemExists() function indicates whether the specified shortcut has been added to the Shortcut Bar.

Syntax

ScBar_ItemExists(type, name, shortcut_display_name)

Parameters

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):

[spacer]

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.

Return value

A boolean. True indicates the shortcut exists, while false indicates it does not.


Documentation Feedback