<i><font color="#663300">I have the following code, there is a FLUSH after the call to save. Sould I use FLUSH whenever I do a save manually or should I use TableUpdate()</font></i>
First off, TABLEUPDATE() and FLUSH() are data-layer commands. They have no business in either the bizobj or the form code.
Second, if you take the time to step through the Save() method, you'll see that the data behavior object will actually call TABLEUPDATE(), as this is the only way to save a view's changed data. FLUSH() is largely useless, as there is so much cacheing (Fox -> OS -> network -> server -> server's disk) that flushing the data from Fox to the OS doesn't really accomplish too much. And since a TABLEUPDATE() sends a command to the server, FLUSH() doesn't affect the results of the Save() at all. <font color="#cc0000"> ___/ / __/ / ____/</font> Ed Leafe ©2002 Ed Leafe |