Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why i cannot delete the records
Message
 
À
10/06/1998 03:36:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00105004
Message ID:
00106606
Vues:
27
>>>Hello Vladimir,
>>>
>>>Thank for your reply.
>>>
>>>I have already solved the problem of the Deletion.
>>>But it have created a new problem.
>>>As i deleted a invoice and i add a new invoice with the same invoice no.
>(deleted previous), an error will be occured. (Primary key is not unique).
>How can i fix this problem ?
>>
>>What we do is we SET DELETED OFF before seeking the record using the
>primary key field. If found, we RECALL the record, else we do INSERTion,
>then SET DELETED ON again.
>>
>>
>
>What we do is multiply the primary key by -1 (assuming you are using
>numerics) when we delete any records.

Hmmm...that sounds better. But how if not numeric? Maybe replace it with SYS(2015) before deleting. What can you say Gene?
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform