General information
Category:
Coding, syntax & commands
Elyse,
I've always had trouble with NOTs and ORss (and AND for that matter) in compound IF statements - they go opposite to intuition. Might llError be being returned true with the code you have?
You might have better luck testing the positive instead.
Good luck,
Jim N
>
>My code looks something like this:
>
>IF !TABLEUPDATE(2,.f.,"Table1") OR !TABLEUPDATE(2,.f.,"Table2") OR ;
> !TABLEUPDATE(2,.f.,"Table3")
> llError=.t.
>ENDIF
>IF llError
> ROLLBACK
>ELSE
> END TRANSACTION
>ENDIF
>
>The record is there after the TABLEUPDATE. It loses it after the END TRANSACTION.
>
>Elyse
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only