Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
UPDATE SQL - A way to see if update occurred
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00066044
Message ID:
00066051
Views:
37
>Is there a command or flag you can check to see if an UPDATE command actually updated a record? If it didn't, I want to execute an INSERT command to append the record.
>
>TIA,
>
>Bill

Check the foxpro _tally variable after the update command has completed. This should tell you how many updates occured. As a rule of thumb, set _tally = 0 before you try the update.

Peter
Peter Stephens
Visual Records, Inc.

Lead Programmer for the general purpose record keeping system Visual Records. Written primarily in VFP 6.0 with a little C++.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform