Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for duplicate records before Save() proceeds
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Checking for duplicate records before Save() proceeds
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Firebird
Miscellaneous
Thread ID:
01266127
Message ID:
01266127
Views:
58
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
___________________________________________
Next
Reply
Map
View

Click here to load this message in the networking platform