Microsoft KB Archive/132947

= HOWTO: Suppress the Initial Dialog Box in a Parameterized View =

Article ID: 132947

Article Last Modified on 7/13/2004

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q132947



SUMMARY
A dialog box prompts the user to enter a value for the parameter if you use a parameterized view stored in the data environment of a form and the parameter wasn't initialized before the form was opened. The dialog box pops up when the view opens. To prevent this from happening, you must specify an initial value for the parameter.



MORE INFORMATION
You can set the initial value of the parameter, and prevent the dialog box from appearing. In the BeforeOpenTables event of the data environment, declare the parameter as Public, and give it an initial value. For example: Public Myparam Myparam = "Initial Value" Using this method ensures that there is an initial value for the parameter as the view is opened, so the dialog box doesn't appear.

Keywords: kbhowto KB132947

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.