Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Keys
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Primary Keys
Divers
Thread ID:
00535657
Message ID:
00535657
Vues:
36
In my dbc I have a procedure that gets the primary key. It all works great but I would like to make it more generic if possible. In the default value of the prikey field I have GetPriKey("tablename").

Is there a way to replace "tablename" with something like THIS so that if a table gets renamed it will still work? It probably will never happen but I would like to have a better approach.

I considered getting ALIAS() in the top of GetPriKey() and use that but I would not feel confident that ALIAS would always return the table I am adding records to.

This is not a critical problem but something I have been wondering about.

Looking forward to meeting more of you in San Diego.

Thanks...
Tommy
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform