Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When a tableupdate doesn't
Message
From
27/01/2000 09:30:44
 
 
To
26/01/2000 16:41:53
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00323082
Message ID:
00323520
Views:
22
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
Map
View

Click here to load this message in the networking platform