Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A NICE message when Primary Key is violated
Message
From
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:
00503877
Views:
22
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.

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,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform