Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unique records
Message
 
À
18/12/1998 16:44:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00169031
Message ID:
00169034
Vues:
34
>I have a product code table that Im trying to build a form to add new product codes to. I have an index set up for unique product codes, the problem that Im running into is I have my form with a field for the product code and in the when method i have code that seeks the table to see if the code has already been used. when I run the form and try adding a new product code that I know is in the table, i get an error that tells me that the uniquness of the index has been violated. how to I capture this error before it happens?
>
>Thanks
>Ron

You could have an insert trigger which returns false if the product code is already in the table. Or your valid method could validate and refuse to add if the code is already there.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform