Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for duplicate records before Save() proceeds
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Checking for duplicate records before Save() proceeds
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Divers
Thread ID:
01266127
Message ID:
01266127
Vues:
59
Hi all

I have a list of fields that need to be confirmed as not being duplicate before I let the framework Save() to proceed further.

I know I can setup candidate indexes in VFP and unique constraints in FireBird but I want to be sure before I allow the Save() to proceed.

The list examples are like below
cBk, iNo
cName, cCity
tInvDateTime, cClientName

I did try to create a where clause but the whole thing started to get very complex, when various types of fields start getting involved, Double, Numerics, Date, DateTime, .... Plus I had to have it for both VFP and FireBird.

Is there any way to find out if there is a unique violation in VFP code?

Thanks.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform