Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Entering data in the DBF

Status
Not open for further replies.

progfox

Programmer
Joined
Jun 15, 2003
Messages
43
Location
IN
Sir,
I wanted to know that if there is any sort of property of dbf or so that when a data is inputed in it or with the help of a grid then it checks the data for its uniqueness and if found it duplicate then add 1,2,3... or A,B,C... like that at the end of the data.

If its a property ar there are sort of code then plase provide me with the code.


Regards

Chandan
 
Chandan,

You can do this by creating a candidate index on the field in question. If you get a duplicate value, VFP will raise an error, which you can trap and take action on.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top