PRB: Menu Builder Uses System-Generated Name For Menu Pad/Bar

Last reviewed: June 27, 1995
Article ID: Q127777
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6, 2.6a

SYMPTOMS

If you create a menu using FoxPro's Menu Builder and the pad or bar name begins with a number, the name in the Menu Level popup will be assigned a system-generated name rather than accepting the pad or bar name you supplied. Additionally, if you give the pad or bar name a value containing a space within the first 10 characters, the name in the Menu Level will be assigned a name based on the first 10 non-space characters in the name rather than the name you supplied.

CAUSE

FoxPro's Menu Builder uses corrected Menu Levels when you enter values that it cannot use. This behavior prevents errors when generating the menu and allows reference to menu pads and menu bar names that are otherwise invalid names.

STATUS

This behavior is by design.

MORE INFORMATION

Steps to Reproduce Problem

  1. In the Command window, type this command:

    modify menu test

  2. In the PROMPT box, type "123456" without the quotation marks.

  3. Click the CREATE button.

  4. Note that the Menu Level now contains a system generated name such as _qx50yl5up.

  5. In the PROMPT box, type "abcde fghijk" without the quotation marks.

  6. Click the CREATE button.

  7. Note that the Menu Level now contains the name abcdefghijk.

If you begin a pad or bar name with an alpha character, the Menu Level accepts the first 10 characters of the pad or bar name you supply. If you include spaces in the first 10 characters of a pad or bar name, the Menu Level will eliminate any spaces contained within the first 10 characters of the pad or bar name.


Additional reference words: Foxwin 2.50 2.50a 2.50b 2.50c 2.60 2.60a
corrupt convention
KBCategory: kbtool
KBSubcategory: FxtoolMbuilder


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 27, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.