Undocumented Separator Property of a VB Menu Item

ID Number: Q76550

1.00

WINDOWS

buglist1.00

Summary:

Microsoft Visual Basic contains an undocumented property for menu

items that toggle between the caption and a separator bar. (A

separator bar in a menu is a horizontal line that separates menu item

groups from one another.) The Separator property is not documented in

Visual Basic's manuals or online Help, and may be removed from future

versions.

You should not use the Separator property in your Visual Basic

applications because it may be removed from future versions of the

Visual Basic language.

Microsoft did not intend to leave the Separator property in the Visual

Basic product. Microsoft has confirmed this to be a problem in

Microsoft Visual Basic programming system version 1.0 for Windows. We

are researching this problem and will post new information here as it

becomes available.

More Information:

Separator Property (Applies to Menu Items)

------------------------------------------

Description: Denotes if a menu item is a separator bar. Prevents

or allows the value of the Caption property of the

menu item to be displayed versus a separator bar.

Usage: [form.][menuitem.]Separator[= boolean%]

Remarks: The Separator property settings are as follows:

Setting Description

------- -----------

True (-1) Disables the display of the value of

the Caption property as the menu item.

Instead, a separator bar is displayed.

False (0) (Default) for all other menu items.

The menu item will display the value

of the Caption property for that item.

When a menu item is created in the menu design window,

the value of its separator property defaults to 0 unless

the caption of that menu item is set to "-", then the

Separator property defaults to -1 and a separator bar

is displayed for that item in the menu instead of the

value of the Caption property.

Additional reference words: 1.00