The information in this article applies to:
SUMMARYThis article shows you how to place the value chosen from a shortcut menu choice into a text field of a form. MORE INFORMATION
The shortcut menu available in Visual FoxPro 5.0 provides a useful method
to display choices to a user. Once the user makes a choice from the
shortcut menu, the code places the text string from the menu bar into the
text field. Because the shortcut menu disappears after a selection, this
technique presents the user with choices while saving room on the form for
other objects. This technique is useful if you simply want to present a
user with choices and do not need all the functionality of a list or combo
box object.
The syntax of the PRMBAR() function in step 3 needs some clarification. The PRMBAR() function requires the menu name as its first argument. The POPUP() function returns the name of the currently active menu. The BAR() function returns an integer representing the chosen menu bar item. "Shortcut" is the default name the Menu Builder assigns to the DEFINE POPUP command. If you need to change the name of the menu, simply choose Menu Options from the View menu in the Menu Builder. After you change the name of the menu and generate the menu code, the POPUP() function automatically resolves the new name. Additional query words:
Keywords : kbBuilder kbVFp500 kbVFp600 |
Last Reviewed: December 13, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |