PaneCount Property (AStatusBar)

Returns the number of panes in the object.

Syntax

[ lPaneCount = ] Object.PaneCount

The PaneCount property syntax has the following parts:

 

Name

Type

Description

Object

AStatusBar

AStatusBar object

lPaneCount

Long

An integer specifying the number of panes in the object.

Example

The following statement disable all panes:

lPaneCount=sbr.PaneCount

for lPane=0 To (lPaneCount-1)

sbr.Panes(lPane).Enabled=False

Next

Applies to

AStatusBar

See Also

Clear, InsertPane, Panes, RemovePane