Hackers Guide to Visual FoxPro 7.0
AutoOpenTables, AutoCloseTables, OpenViews
AutoOpenTables and AutoCloseTables determine whether or not the items listed in the Data environment open and close when the object (form, formset, report, label) opens and closes. OpenViews, added in VFP 5, determines what kind of views get opened by OpenTables.| Usage | lValue = oObject.AutoOpenTables lValue = oObject.AutoCloseTables |
| Usage | nValue = oObject.OpenViews |
| Parameter | Value | Meaning |
| nValue | 0 | Open both local and remote views. |
| 1 | Open local views only. | |
| 2 | Open remote views only. | |
| 3 | Don't open any views. |
You usually do want tables in the Data environment to be opened automatically, but views are another story. Depending on the data source and the situation, you may need more control over views, especially in a form. This property gives you some control.
This setting affects not just what happens when OpenTables runs automatically because AutoOpenTables is .T., but also what happens when OpenTables is called explicitly.| See Also | AfterCloseTables, BeforeOpenTables, CloseTables, OpenTables |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.
Категории