Alan Bourke wrote: > Mike yearwood wrote: > >> It seems >> everybody does this: >> >> REPLACE table.field1 with value1, table.field2 with value2 >> >> even though >> >> REPLACE field1 with value1, field2 with value2 in table >> >> is the correct and safest way to do it. >> >> > > Well, no. I use > > Begin Transaction > lFailed = .f. > > Try > > Update table1 Where this=that Set field1=value1, field2=value2 > > Catch > > lFailed = .t. > Rollback > > Finally > > if !lFailed > > end transaction > > endif > > EndTry > > ... or words to that effect. >
Yours is a more generic approach, and that's fine I guess, but the xBase equivalent using SEEK/REPLACE may be "richer" or at least be a finer tool instead of a blunt hammer. <g> -- Michael J. Babcock, MCP MB Software Solutions, LLC http://mbsoftwaresolutions.com http://fabmate.com "Work smarter, not harder, with MBSS custom software solutions!" _______________________________________________ Post Messages to: [email protected] 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/[EMAIL PROTECTED] ** 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.

