ListBox.SetType

ListBox.SetType (

string ObjectName,

number Type )

Description

Sets the type of listbox to be either a "normal" list box or a checklist box.

Parameters

ObjectName

(string) The name of the listbox object.

Type

(number) A number representing the type of list box to use.

CONSTANT

VALUE

DESCRIPTION

LB_LISTBOX

0

The object is a normal list box.

LB_CHECKLISTBOX

1

The object is a checklist box. Each item in the list box has an associated checkbox that can be checked or unchecked.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

See also: Related Actions