Use of *# USERPOSTCOMMAND Screen Generator DirectiveLast reviewed: April 30, 1996Article ID: Q112473 |
The information in this article applies to:
SUMMARYFoxPro version 2.6 contains a new screen generator directive, *# USERPOSTCOMMAND, which expands the functionality of the Screen Builder. This new directive allows the use of code that is executed after GET fields are initially defined but before the READ is executed.
MORE INFORMATIONThe *# USERPOSTCOMMAND directive is placed in the comment snippet of a GET field as follows:
*# USERPOSTCOMMAND DO myprocedureIn this example, a line of code ("DO myprocedure") is inserted immediately after the GET field in the generated .SPR program. You can use this directive to define a number of GET fields based on conditions that exist when the screen is initially executed. This approach is often more desirable than disabling GET fields when certain users should not have access to confidential information, such as salary figures. NOTE: This directive will not override the limitation of being unable to define new GET fields within the active READ. It will not allow the current GET to be redefined at run time, since the code is placed on the line following the @ ... GET statement.
Example
|
Additional reference words: FoxDos FoxWin 2.60
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |