Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PrimaryKey() in Free Tables
Message
 
 
To
22/05/2002 14:34:26
General information
Forum:
Visual FoxPro
Category:
CodeMine
Miscellaneous
Thread ID:
00660057
Message ID:
00660380
Views:
10
Gary,

>>Primary key will work just fine with free tables<<

I have the PrimaryKey() working with free tables just like you said. However, after studying the PrimaryKey() code, it appears that it doesn't do a re-synch the first time it is called like it does with a primary index type.

What brought this problem up was importing data from another table. As an example, if the other tables index key I was going to use was type numeric and the first record had a value of 5, and the last record had a value of 9,999 - you would think the first key it would increment would be to 10,000. However, it started with 1 - which is OK. However, after adding 5 records it then created a duplicate key for 5 (if it was a regular index, or would give me the uniquness warning if candidate index).

Any suggestions on how to handle this when you are importing records using the PrimaryKey() function.

Thanks,
Mel Cummings
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform