Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help.... error 1585
Message
De
18/11/2003 21:02:49
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Help.... error 1585
Divers
Thread ID:
00851260
Message ID:
00851260
Vues:
54
how can avoid error 1585, for the next piece of code??. I want the two changes be saved. thanks in advance.

I am using optimistic buffered table
User A: Get MiTable.Field[1]="A"
User B: Get MiTable.Field[2]="ZZ"
User A: Modify MiTable.Field[1]="B"
User A: Save the Data
User B: Modify MiTable.Field[2]="XX"
User B: Try to Save/Update the Data...

Error method:

case nError = 1585 && update conflict
nResult = MESSAGEBOX('this record was changed by another user.' + ;
'do you want to save anyway???' + chr(13) + ;
,MB_ICONQUESTION + MB_YESNO, ;
'Record was changed')
If nResult = IDYES
Tablerevert(.F.)
else
TABLEUPDATE(.T., .T.)
Endif
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform