Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check duplicate in table buffered mode?
Message
From
19/10/1997 01:52:52
 
 
To
19/10/1997 00:20:07
Shihchau Tai
Apic Systems Pte Ltd
Singapore, Singapore
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00055264
Message ID:
00055336
Views:
32
>>>How do I check for duplicate in table buffered mode? Do I have to do a 'COPY TO' a temp table before I check? It seems troublesome.
>>>
>>>This table buffering is really killing my time. Can someone please comment?
>>
>>This is an interesting situation. I don't think a COPY TO is good as it will slow down the process on big tables. Are candidates keys useful in this situation? This process may be handle by Visual FoxPro automatically using that. Or, if from a manual process, then I would check for all modified records in comparism with the rest of the table.
>>
>>There is certainly other techniques. Those are just the first ones that came to my mind.
>
>I am puzzled. Isn't this a basic thing everyone using VFP will encounter? How do you people normally handle duplicate key in table buffer mode? Using the candidate key? The second method sounds like quite a chore.

As for checking duplicates, I am calling a function for that which will seek to see if a value already exist for that field other than the current record we are presently on. However here, some special considerations may apply because you are using table buffering which means several new records may have been created but not on disk yet.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform