Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error management
Message
De
17/09/2003 10:36:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
17/09/2003 06:14:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00829771
Message ID:
00829886
Vues:
13
>Thank you for help
>I m new in VFP
>I have candidate index on some field.
>The user entering\updating the data by grid.
>How can I check if he tring to enter duplicate value in the field before I start to save the grid data to the table (I don't want that VFP will stop him in the middle with VFP error message).
>Thank's
>Gadi

Gadi,
Check indexseek() function. It'd return .t. if the key already exists and not the one they're entering (buffering on). Be carefull once you leave the row indexseek() would return .t. if the key is new (in buffer) or old.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform