Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for duplicates
Message
From
11/01/2000 19:45:33
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00315645
Message ID:
00316607
Views:
24
>This seems line an elementary question, but it's got me a bit puzzled. When the user is entering a new record, how do you check to be sure a field doesn't have a duplicate value without moving the record pointer?

>Michelle


Michelle, this suggestion has already been made so I'm just going to reiterate it. I have a number of lookup routines for key fields as methods of my main app (goApp). These methods always execute in the default datasession (1). A new record would be entered in a form which has its own datasession. So I'm always free to pass the entered value to the goApp.MyLookup() method to see if it is already present without disturbing the form in any way.

Bear in mind that it won't find a record which is still in your input buffer.

I think this is the most straightforward and general approach.

Peter
Peter Robinson ** Rodes Design ** Virginia
Previous
Reply
Map
View

Click here to load this message in the networking platform