Single Screen Set to Prevent "Too Many READs in Effect"ID: Q106696 2.50 2.50a 2.50b | 2.00 2.50 2.50a 2.50b
The information in this article applies to:
SUMMARYIf a screen runs another screen, the current number of READs in effect is increased by one. One way to avoid nesting is to have all the screens that call each other in one screen set where only one screen is enabled at a time.
MORE INFORMATIONThe following procedure creates a set of screens that can run one another without increasing READ levels by enabling and disabling GETs:
10. Change the window name to Two and the window title to Screen 2.
11. Select the push buttons created in step 6. 12. Change the first push button prompt to Screen 1. 13. Change the code in the Valid Code Snippet as follows:
14. Name the window Two and title the window Screen 2.
15. Save the screen. 16. Add the screen TWO.SCX to the screen set One in the project. 17. Build the project with the Rebuild Project option. 18. Run the ONE.SPR program. Note that the RDLEVEL() command never returns a value greater than 1, even when you are switching between screens 1 and 2. For additional information about this topic, please see the following article in the Microsoft Knowledge Base:
The method described in Q106697 is faster, but requires more memory and
more resources.
Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a 2.50b errmsg err msg Window Screen switch KBCategory: KBSubcategory: FxenvMemory
|
|
Last Reviewed: May 22, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |