How To Prevent "Too Many READs in Effect" Error MessageID: Q106697 2.5x 2.6x | 2.00 2.5x 2.6x | 2.5x 2.60a
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 a main program run the next screen. The EX1 application in the GOODIES\FNDATION subdirectory illustrates this idea.
MORE INFORMATIONThe following steps create a group of screens that can run one another without increasing READ levels. This example is a simplified version of the EX1 application.
10. Create a two-button push button set. Type "Screen 2" and "Quit" for the
11. Enter the following code in the Valid Code Snippet window:
12. Save the screen without saving the environment.
13. Save the screen again as TWO. 14. Change the window title to Screen 2. 15. Select the push buttons created in step 10 above. 16. Change the first push button prompt to Screen 1. 17. Change the code in the Valid Code Snippet as follows:
18. Save the screen.
19. Add the screen TWO.SCX to the project. 20. Build the project by choosing the Rebuild Project option. 21. Run the HANDLER.PRG 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 Q106696 is slower, but requires less memory and
fewer resources.
Additional reference words: FoxDos FoxWin FoxMac 2.00 2.50 2.50a 2.50b 2.50c 2.60 2.60a errmsg err msg KBCategory: KBSubcategory: FxenvMemory
|
|
Last Reviewed: May 22, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |