Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Autoincrement field - how to implement with views?
Message
De
16/10/2003 14:34:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Autoincrement field - how to implement with views?
Divers
Thread ID:
00839435
Message ID:
00839435
Vues:
53
I really like that VFP finally has an auto-increment type built-in. So I'm now trying to utilize it and I'm having the similar type of issue I had with MS SQL.

In a view I append a blank record but the new key hasn't been generated yet. So I can't tie in the child records. Even if I do a table update it doesn't move the keys in.

I know several workarounds... But I just wanted to find out what the 'preferred' way was to handle that situation. Is there a VFP function like there is in MS SQL that you can use to find the key value that was generated?

It would also be nice to have a methodology that would be easy to up-size to SQL Server later.

Thanks in advance!

Greg
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform