Displaying Unique Messages for Prompts in a Button SetID: Q104347 2.00 2.50 2.50a | 2.50 2.50a
The information in this article applies to:
SUMMARYWhen you are creating a button set in the Screen Builder with two or more push button prompts, you can have a unique message displayed for each individual prompt when it is activated.
MORE INFORMATIONWhen a button set is created in FoxPro, a single @ ... GET command is generated, regardless of the number of prompts in the set. Therefore, only a single MESSAGE clause can be used with a button set. However, the MESSAGE clause is reevaluated each time the value of _CUROBJ changes, allowing for the display of unique messages for prompts in the same button set. To do this, declare the MESSAGE clause as either a procedure or an expression. The following code examples demonstrate these methods using a button variable named "choice" with three push button prompts.
MESSAGE Clause as a Procedure
MESSAGE Clause as an Expression
where
is in the screen SETUP code to define and initialize the choice_msg
array.
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a window KBCategory: kbdisplay kbui KBSubcategory: FxtoolSbuilder
|
|
Last Reviewed: May 22, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |