Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing the Primary Key
Message
 
To
10/12/2001 03:05:28
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00591952
Message ID:
00592180
Views:
21
Hi, David! Meet David! I just think it's funny when people respond to their own posting. :-)


Here's the solution to your problem:

Kevin has setup a stored procedure that he calls when creating a new record. What you need to do is put "NEWID()" in the default value of your VFP table which should be contained in a DBC. Make sure the PK is updatable in your view.

However, if you don't have your tables in a DBC when you need to over-write the method generating the "NEWID" with your own. I when through these same problems when I was moving an FP for DOS System to VFP.

Hope this helps!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform