Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving problem with updateable local view. Please help
Message
From
12/04/2000 16:26:06
 
 
To
12/04/2000 16:05:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00358779
Message ID:
00358934
Views:
11
>>What does TABLEUPDATE() return? Are you sure you are not double buffered? (Copy of base table open and buffered in the same DS).
>
>Thanks for responding.
>
>What had happened was that the next primary key value I was retrieving was not unique, causing the TABLEUPDATE() to fail. As soon as I made sure I was getting unique value for the primary key it worked fine.
>
>But I'm wondering why VFP didn't give me the unique violation error message.
>

When using TABLEUPDATE with a view, it's a good idea to make it a habit of always checking the return value, and doing something in case it fails. My framework's Save method wraps the TABLEUPDATE function with a check that handles failures.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform