Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CA update conflict handler problem
Message
De
31/12/2004 02:28:50
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
00973489
Message ID:
00973494
Vues:
14
Hi Marcel,

Could you post complete repro code?

Perhaps you should use ERROR command rather than function.

Thanks,
Aleksey.


>Asked this question before but after troubleshooting it some more I've narrowed down the problem so I'll simplify the question.
>
>Why does the following snippet cause my Cursor adapter to stop working completely, after I have an error 1585? The code is located in the .afterupdate method (native tables):
>
>
>LPARAMETERS cFldState, lForce, nUpdateType, cUpdateInsertCmd, cDeleteCmd, lResult
>
>IF _TALLY = 0 AND lResult
>	ERROR('Update Conflict')
>	*this.updateconflict = .T.
>ENDIF
>
>
>If I comment out the error line and uncomment the this.updateconflict line, I'm able to handle the conflict by saving the values I entered, doing a cursorfill, reentering the values and then doing a tableupdate(1, .F.). That's the only way I can get an update with a conflict to work. Using the Error() line won't allow me to do any TableUpdate(.T.,.T.) or .cursorfill, or .cursorrefresh(). However, this code should work according to Microsoft and Code Magazine.
>
>Anyone know why?
>
>I appreciate any help you can give me.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform