Returns a specific pane of the object either by position or by name.
[ pPane = ] Object.Panes ( vKey )
The Panes property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AStatusBar |
AStatusBar object |
|
pPane |
A specific pane of the AStatusBar object. |
|
|
vKey |
Variant |
The parameter which specifies the object. This can be a position (index) or a string (pane name). |
The panes collection is a zero-based collection.
The following statement returns the first pane of the AStatusBar object:
Pane=sbr.Panes(0)
The following statement returns the "Time" pane of the AStatusBar object:
Pane=sbr.Panes("Time")