Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Key Field Indexes (indices? ;)...)
Message
From
12/07/1998 23:14:37
Mandy Mccord
Public Interest Breakthroughs, Inc.
Albany, New York, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00116656
Message ID:
00116675
Views:
14
>>Hi all,
>>
>>Ok, a *really* basic question, but I'm curious what you are all doing out there with this one.
>>
>>What type of index do you use with your key fields in tables? My books suggest Primary or Candidate, and I've also tinkered with Unique. I have encountered problems in the past when adding new records with 'key field index uniqueness violated' or some such message and thought it might be caused by the brief moments between when a record is newly created (append blank) and the line of code runs that assigns a new key value to it and plops it into the appropriate field.
>>
>>Am I making any sense? Just curious :).
>>
>Hi Mandy,
>
>In addition to what Barbara has told you you should look in your table for any blank records and get rid of them. It is an existing blnak record that prevents your issuing an APPEND BLANK with Primary/Candidate indices.

Thanks much to both of you! It cleared up that question for me quite nicely :).

>By the way, both spellings of indexes are acceptable :-).

thanks! My spelling is often less than perfect! ;)

Mandy
Previous
Reply
Map
View

Click here to load this message in the networking platform