Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Table buffer for alias contains uncommited changes
Message
From
18/06/2009 13:54:04
 
 
To
17/06/2009 17:40:26
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01406734
Message ID:
01406940
Views:
47
>>I am getting the following message on my view during requery:
>>
>I'm not sure this is it but the help for TABLEUPDATE() shows

>TABLEUPDATE( [nRows [, lForce]] [, cTableAlias | nWorkArea] [, cErrorArray] )
>

If you are using table buffering, TABLEUPDATE(.T., .T.,...) is equal to TABLEUPDATE(1, .T., ...)

I use the debugger to find these types of problems rather than trying puzzle through the code.

I would set a debug breakpoint right after the TABLEUPDATE statement, then set another breakpoint as follows:

Break when expression is true: REPL('1', FCOUNT("myTable")+1) != GETFLDSTATE(-1, "myTable") && You need to add 1 to FCOUNT() to count for deleted -flag in the beginning fo GETFLDSTATE() return value

This will stop program execution as soon as the buffer contains unsaved changes, which in turn will show you the exact line where the buffer is changed.
Pertti Karjalainen
Product Manager
Northern Lights Software
Fairfax, CA USA
www.northernlightssoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform