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.


_______________________________________________
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/[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.

Reply via email to