On 8/27/12 7:43 PM, Dan Covill wrote: > Personally, I'd rather use autoincrement, but I still don't see any > evidence that sys(2015) generates duplicates.
I think if I recall correctly the danger was with 2 separate processes of VFP on the same or different computers generating non-unique values when run in the same timeframe. This was the reason for concatenating the machine name plus maybe the process id. Auto-increment was easy and worked well, until my client wanted to bring a laptop offline and do real work with it. It turned out that the method I'd started with (sys(2015)) was the method I returned to, and upon reflection was the overall easiest, most reliable, and most flexible of the VFP-native pk-generating options. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

