Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Check if record already exists
Message
De
29/11/2006 13:03:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01173340
Message ID:
01173399
Vues:
10
>>how to check if record is already exist.in numarci and character
>
>Do you have an Index on each field?
>
>you may want to do
>local lcDeleted
>lcDeleted = set('deleted')
>set deleted off
>if seek(MyValue, 'MyTable','MyField')
>  if deleted()
>     =messagebox("Record exists and it was deleted")
>  else
>   =messagebox("Record exists")
>  endif
>endif
>set deleted &lcDeleted
Naomi

I use INDEXSEEK(). with lMovePointer = .F. That way you don't need to lerave the record you're on. (or KEYMATCH())
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform