Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Really Strange FoxPro Behavior

Status
Not open for further replies.

toddsevans

Technical User
Aug 20, 2004
19
US
Something very strange is happening when I use SELECT...

Here is a portion of the code:

*******************************************************
SELECT deduc
SET FILTER TO deduc.loan_no = ALLTRIM(macct1)
GOTO TOP
WAIT ALIAS() WINDOW
DO WHILE !EOF()
WAIT ALIAS()WINDOW
*******************************************************

The first WAIT WINDOW returns deduc as you would expect

The second WAIT WINDOW returns borrower which is another table I have in the data environment.

I have tried USED() and AUSED() to determine that there is a table in use and that deduc is in fact open.

I cannot figure out how borrower is becoming the currently selected table.

Help!!!
 
Hi toddsevans,

DO WHILE !EOF()
WAIT ALIAS() WINDOW


You need to post ALL of the code. What is a DO WHILE doing without an ENDDO. Off the top of my head I can't recall which ones, but I think there are VFP commands that implicitly change the work area.

Regards,

Mike
 
I assume you're sure there's nothing going on in between that might be changing the workspace, including any error routines?

Brian
 
There is a huge amount of code but I really think that all you need is this piece. Of course there is an ENDDO but the problem presents itself long before you ever reach it.
 
I have discovered that if I take out all the WAIT WINDOWS the code executes properly.

Strange that WAIT WINDOW would change the currently selected database.
 
Even a WAIT NOWAIT command causes this strange behavior
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top