Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View Gone Buggy
Message
From
02/09/1998 15:37:04
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00132060
Message ID:
00132512
Views:
19
Hi, Michelle.

I use INSERT INTO, and ran into this issue early on. I have a stored procedure for generating my key ids. And I set it as the default value at the table level, just for "in-case", but otherwise I just call the stored procedure in my INSERT INTO call if I need the id. Otherwise, I just ignore it. Since I use optimistic row buffering (as a general rule), I don't run into any problems.

>I don't want to store a random value to the key. I want to store the sequential key that goes in automatically when I do an APPEND BLANK. I can't do INSERT INTO because I'm not inserting anything into it. If I try it, it will put a 0 in for the key field and then I'll get a duplicate key error. That's why I use APPEND BLANK.
>
...snip
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform