Information générale
Catégorie:
Codage, syntaxe et commandes
When you are adding in the file, before that check existense of
your primary field, by using a locate or a seek command.
if not found then add a new code other wise issue a tablerev, if
you have already issued a append blank.
if key field is numeric, you can use this line
sele max(keyfield)+1 from yourdbf into array yourarray
>Hi
>
>I have a dbc with 5 tables
>they are indexed candidate.
>
>In my form.grid if I try to enter a equal number
>and it exsist I get an error that is ok, but how
>do I trapp this error, and run a tablerevert.
>Im using 5 optimistic buffering in the DE.
>In my exe you get 3 options on this error
>and the only who works is cancel and there
>goes my app.
>
>Best regard
>
>Per Simmersholm
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement