Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine if field entry is unique?
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01143260
Message ID:
01143348
Vues:
11
>>Try VFP9 only
>
>>SELECT * FROM  mytable ;
>>	WITH (Buffering = .T.) ;
>> 	WHERE <New User Entry> ;
>> 	TO SCREEN NOCONSOLE
>> 	
>>IF _TALLY > 1
>>  * Duplicate
>
>
>You really meant to write
>
>
>IF _TALLY > 0
>
>
>right?

It depends when you check. If after INSERT as your original code than my code is correct. If before INSERT than you're correct.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform