On 2/1/2012 6:41 PM, Dan Covill wrote:
> On 02/01/12 11:28, Frank Cazabon wrote:
>> OK, cool.  Of course you need the with (buffering = .T.) clause in your
>> SQL if you use buffered data :)
>
> And that's EXACTLY why I don't do it in the form.  Those considerations
> belong in the data layer, not the UI.
>
> If I change from .DBF to something else, I do NOT want to go through my
> forms changing a bunch of SQL.


But in my example, you don't change the code at all, regardless of the 
backend, because I was calculating off the locally created cursor. 
Hence, it works no matter if I switch backends or not.  Remember you 
only tie to VFP objects and cursors.  The backend handles updating the 
REAL data store.  If he were querying on SAVED/STORED data, then I'd 
agree to move that to the DataObj, but the example was on BUFFERED data 
in the UI, not yet committed.


-- 
Mike Babcock, MCP
MB Software Solutions, LLC
President, Chief Software Architect
http://mbsoftwaresolutions.com
http://fabmate.com
http://twitter.com/mbabcock16

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/4f29e04e.8050...@mbsoftwaresolutions.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to