Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for duplicates
Message
De
11/01/2000 19:45:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00315645
Message ID:
00316607
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform