Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Uniqueness of index PRIMARY is violated
Message
De
07/10/1998 14:43:43
 
 
À
07/10/1998 12:12:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00144393
Message ID:
00144714
Vues:
22
Hi Michel,

Since I'm just getting into VB I thought I would share the neat (in my humble opinion) way that VB has to get around this. . .

You can include reserved words as names (maybe only for certain things only (not certain on that) ) provided that the "user's" (ie the coder's) names are enclosed in the "[" / "]" (left-bracket / right-bracket) characters.

This also gives a way to get around this if some FUTURE reserved word conflicts with a name already used in a program. Sure, one has to change one's code when that happens, but only to add the brackets, not to actually change names everywhere.

Cheers,

Jim N

>>So, is it the consenus then that it is a bad/dangerous thing to name my Primary index "PRIMARY"?
>
>This is an interesting discussion. I think we've all been in that situation once.
>
>More than that, we also have to think ahead. Which means, a word used in code, index definition, etc., might be available to use now but may become a reserved word for upcoming versions.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform