AddToFavorites

 

Description

 

Create a shortcut to the specified page and stores it in the Favorites directory specified by the ShortcutDir property.

 

Arguments

 

Name

Type

I/O

Description

URL

String

In

The URL of the page for which a shortcut is to be created.

BshowSaveDialog

Boolean

In

Set to True to display the File Save dialog and allow the user to select a name for the shortcut. When False, the name will be based on the page title.

 

 

Return Value

 

Short Integer: zero for success, else non-zero.

 

This method corresponds to the Save Favorite Shortcut button in the toolbar.

The directory in which the shortcuts are kept is specified by ShortcutDir.