WebViewFolderContents.SelectItem method

Sets the selection state of an item in the view.

Syntax

WebViewFolderContents.SelectItem(
  vItem,
  dwFlags
)

Parameters

vItem [in]

Type: Variant*

The FolderItem object for which the selection state will be set.

dwFlags [in]

Type: Integer

A set of flags that indicate the new selection state. This can be one or more of the following values.

(0)

Deselect the item.

(1)

Select the item.

(3)

Put the item in edit mode.

(4)

Deselect all but the specified item.

(8)

Ensure the item is displayed in the view.

(16)

Give the item the focus.

Return value

This method does not return a value.

Examples

The following example shows the proper usage of this method for JScript embedded in HTML.

<html>
<head>

...

<script language="JavaScript">
    function fnWebViewFolderContentsSelectItemJ()
    {
        var objFolderItem;

        objFolderItem = FileList.FocusedItem;
        if (objFolderItem != null)
        {
            FileList.SelectItem(objFolderItem, 1);
        }
    }
</script>

</head>
<body>

...

<object id=FileList classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2" tabIndex=1>
</body>
</html>

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional, Windows XP [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Shldisp.h
IDL
Shldisp.idl
DLL
Shell32.dll (version 4.71 or later)