Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing the Primary Key
Message
 
À
10/12/2001 03:05:28
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00591952
Message ID:
00592180
Vues:
20
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!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform