Avatar of smithmrk
smithmrk
Flag for United States of America asked on

FoxPro 9.0 - Free Table (DBF) - Set Fields to be Primary Keys

I have a free standing DBF FoxPro Table that I would like to set a couple of Fields to be Primary Keys so that Duplicate Data doesn't get entered.

I haven't been able to figure out how to do it.

Thanks,
Mark
FoxPro

Avatar of undefined
Last Comment
smithmrk

8/22/2022 - Mon
SOLUTION
Pavel Celba

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Cyril Joudieh

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Pavel Celba

One more note:

If your app uses SET DELETED ON setting then the Candidate index should contain FOR clause:

INDEX ON STR(AccYear,4)+CurrCode TAG YearCurr FOR !DELETED() COLLATE "Machine" CANDIDATE

It will avoid problems with "invisible" duplicities.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
smithmrk

ASKER
Quick Update...I got stuck on a other project and haven't had time to get back to this.
I wanted to let everyone know I've looked over all your wonderful comments and suggestions, I just haven't had time to test out anything as of yet.

Stay tune...next week for sure!

Thanks,
Mark
smithmrk

ASKER
Still haven't had time to test out these solutions, but I've had to move onto other projects and tasks.

I didn't want to leave this question hanging out there forever so I gave each of you the same amount of points.  If I ever do get back to this...I will try your solutions and follow up at that time.

Thanks again!
Mark
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy