Article ID: 149383
Article Last Modified on 6/29/2004
1 - Pessimistic
2 - Optimistic
4 - Pessimistic Table Buffering
5 - Optimistic Table Buffering
RecordSource = Customer
RecordSourceType = 1 - Alias
Init event
ThisForm.nRecNum = RECNO()
BeforeRowColChange
ThisForm.nRecNum = RECNO()
AfterRowColChange
lMov = .F.
IF ThisForm.nWhatRow # This.ActiveRow
ThisForm.nWhatRow = This.ActiveRow
nHold= RECNO()
GO ThisForm.nRecNum
cChange = GetFldState(-1,'Customer')
IF AT('2', cChange)>0
This.Refresh
lMov = .T.
IF MessageBox("Update Record",4)= 6
=TableUpdate(.T.)
ELSE
=TableRevert(.T.)
ENDIF
ENDIF
GO nHold
IF lMov
This.Refresh
lMov =.F.
ENDIF
ENDIF
Keywords: kbcode KB149383