Examples: ScBar_ItemExists

The following example verifies that the shortcut to open the Microsoft web site exists for LESSONUSER1. If it doesn’t, the shortcut is added.

local boolean shortcut_exists;
local boolean result;

shortcut_exists = ScBar_ItemExists(scgPERSONAL, of form syScBarObj, "LESSONUSER1", "Microsoft") of form syScBarObj;
if shortcut_exists = false then
	result = ScBar_AddUrl(scgPERSONAL of form syScBarObj, "LESSONUSER1", 0, "Microsoft", "http://www.microsoft.com") of form syScBarObj;
end if;

Documentation Feedback