Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird WAIT WINDOW behavior....
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01503722
Message ID:
01503847
Views:
74
You are mistaken. The WAIT statement cannot change data in a cursor.

>
>I solved a weird bug in our code....
>
>and it has to do with this WAIT WINDOW
>
>
>WAIT WINDOW 'Charged to Account No. ' + ALLTRIM(STR(mAR_Link)) TIMEOUT 2
>
>
>When the code runs up to this statement, I can stop the code and see that I have 4 records in a table called REGTEMP which is used EXCLUSIVELY.
>
>After the WAIT WINDOW executes and I stop the code, I now have only 1 RECORD in REGTEMP! And this record is missing some of its data in some of the fields!!
>
>
>When I change the WAIT WINDOW to....
>
>
>WAIT WINDOW 'Charged to Account No. ' + ALLTRIM(STR(mAR_Link)) NOWAIT 
>
>
>Everything is happy in FoxPro land..... and the code works.... I still have my 4 records in REGTEMP!
>
>Anyone come across a bug like this in WAIT WINDOW???
>
>Thanks!
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform