Hi Rhea,
I don't have a copy of FoxPro 2.0, but I do seem to recall that there was was a maximum of x (I think 7) READS that could be active at one time. Assuming that new screens that use READ are launched from a menu, you can create a global variable in the main part of the application (the PRG it's launched with) as in:
gNumReads=1
And each time a new screen is launched, check and increment that number ... decrement it when a screen is closed. If the check reveals that gNumReads=6, do not allow the screen to launch and put a message up (WAIT WINDOW) telling the user to close a window.
>This error comes up once in a while in the exe I inherited. Although I know what it means I don't understand reads well enough to know how to avoid the error. I am using foxprolan 2.0 for dos and have had no formal training with the language, just what I have read in books. I ammore familiar with oop database programming. The way the system was set up is to keep opening a window to do some natural progression of an order entry. Can anyone explain to me how to keep the read level below the maximum? It would be much appreciated as there is little help around here for this older version of foxpro. Thanks.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05