Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A NICE message when Primary Key is violated
Message
 
 
To
05/05/2001 02:41:19
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00503380
Message ID:
00503945
Views:
24
>Hi nadya,
>
>>>Three possibilities come up in mind:
>>>1. Use SQL - INSERT
>>>2. Use Record or tablebuffering and commit the insert with tableupdate.
>
>>Could you please expand the option 2 here?
>
>See Message #503704
>
>When using record and tablebuffering the record is not validated (Uniqueness viloation or triggers) until the record is commited with tableupdate(). So in this case you can always add a new record with APPEND BLANK, even if a blank PK alread exists.

Walter,

I thing you're wrong. We use TableBuffering, yet we can't issue APPEND BLANK, if one blank record is already in a table. The error message appears immediatelly, before TableUpdate.

>
>In my personal framework, the changes people make in a form are (record or table) buffered. The users can commit or rollback the changes anytime.
>
>Walter,
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform