Microsoft KB Archive/76550

= FIX: Undocumented Separator Property of a VB Menu Item =

Article ID: 76550

Article Last Modified on 10/30/2003

-

APPLIES TO


 * Microsoft Visual Basic 2.0 Standard Edition
 * Microsoft Visual Basic 1.0 Standard Edition

-



This article was previously published under Q76550



SYMPTOMS
You may encounter an undocumented property for menu items that allows you to toggle between the caption and a separator bar. A separator bar in a menu is a horizontal line that separates menu item groups.



CAUSE
Microsoft did not intend to leave the Separator property in the Visual Basic product.



RESOLUTION
The Separator property is not documented in Visual Basic's manuals or online Help. Microsoft recommends that you not use the Separator property in your Visual Basic applications. The Separator property no longer exists in Visual Basic version 3.0.



STATUS
Microsoft has confirmed this to be a bug in the products listed above. This problem was corrected in Microsoft Visual Basic version 3.0 for Windows by removing the Separator property.



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 a dash (-), in            which case, the Separator property defaults to -1 and a             separator bar is displayed for that item instead of the value of the Caption property.

Additional query words: buglist1.00 buglist2.00 fixlist3.00 2.00 3.00

Keywords: kbbug kbfix KB76550

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.