Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Weird WAIT WINDOW behavior....
Message
From
17/03/2011 13:36:10
 
 
To
16/03/2011 15:05:33
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:
01504000
Views:
57
Isn't there a hidden command in VFP:

SET DWIM ON && Enables the Do-What-I-Mean engine

IIRC the default setting is OFF

>
>WAIT WINDOW MyUDFThatChangesACursorAndReturnsAStringValue()
>
>:)
>
>>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!
Previous
Reply
Map
View

Click here to load this message in the networking platform