Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto increment function for non primary key field
Message
De
24/10/2001 14:08:52
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00572783
Message ID:
00572795
Vues:
41
Hey Nadya,

I can think of a good reason: If you have a sequential ID number that's "visible" and not the primary key, which may be managed internally and never viewed.

>
>Just curios: what is the situation, where you need two auto-increment fields in one table?
>
>>I need an auto increment function like the ones includes with MM for the primary key NewID() for another field.
>>
>>Is it possible to use the NewID() function to auto increment a field other than the primary key?
>>
>>I just tried unsuccessfully by adding an entry into the ID.dbf table, but NewID checks the “Database” property through CursorGetProp and it crashes even if I add a “dummy” table with the same entry into ID.dbf
>>
>>I’ll create another function to auto increment fields, but I’d like to hear the advisse from other MM users.
>>
>>Thanks in advance and regards
>>
>>Oscar Corte
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform