How to Make a Terminating Command ButtonID: Q128337 3.00 WINDOWS The information in this article applies to:
SUMMARYThis article shows by example how to create a command button on a form that will close the form in Visual FoxPro. In FoxPro version 2.x, you could do this by selecting the "Terminate Read on Selection" check box for the push button options. There is no such option for a Visual FoxPro command button.
MORE INFORMATION
Step-by-Step ExampleThis example creates a new form with a command button that when clicked will close the form. 1. Create a new form:
2. Place a command button on the form.
3. Change the caption property of the command button to "Quit". 4. Type the following code in the click event handler of the command 5. Choose Run Form from the Form menu.
6. Click the Quit button, and the form will close. Additional reference words: VFoxWin 3.00 KBCategory: KBSubcategory: FxprgBrowse
|
Last Reviewed: May 22, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |