The information in this article applies to:
SUMMARY
Menuprob.exe is a sample that shows how the Menu() function malfunctions with Top-Level forms.
MORE INFORMATIONThe following files are available for download from the Microsoft
Download Center. Click the file names below to download the files: Menuprob.exeFor more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address http://www.microsoft.com/downloads/search.aspand then click How to use the Microsoft Download Center. As described in the generated menu code when a menu is generated to be used in a Top-Level form, there is a second parameter that can be passed in the DO mymenu.mpr WITH THIS,.T. command that renames the Name property of the form and hence the menu. Running the attached files shows that this is working properly but for some reason, the menu name seems to be cached so the MENU() function does not find the correct menu name in all circumstances. Specifically, when the MENU() function is called from a submenu, MENU() in another instance of the form returns the menu name from the instance of the form where MENU() was called from the submenu. Calling MENU() twice from a menu pad, as opposed to a submenu option, resets MENU() so it returns the correct menu name again. Steps to Reproduce Behavior
Additional query words:
Keywords : kbfile kbsample kbBuilder kbVFp500 kbDSupport |
Last Reviewed: December 2, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |