ID: Q127777
The information in this article applies to:
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.
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.
This behavior is by design.
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
Last Reviewed: June 27, 1995