DBNAVIGATOR PROBLEM
Publicado: Jue May 20, 2010 11:25 am
Hi to all
when I press the key [-] [delete] on the bar [dbnavigator] the current
[record] comes
immediately DELETED while I want to make appear a message box of
confirmation "DELETE? YES/ NO"
METHOD DBNavigator1ClickDelete( oSender ) CLASS Terzisti
::oMessageBox2:cTitle := "Elimina rec. n."+TRIM(STR(::oDBFDataSet1:RECNO()))
::oMessageBox2:BEEP()
::oMessageBox2:RUN()
IF ::oMessageBox2:nResult = 2
GO rec
DBrLOCK()
DBRECALL()
DBrunLOCK()
ENDIF
RETURN Nil
don't work!! the [record] stays [deleted]
WHY??
METHOD Button3Click( oSender ) CLASS Terzisti
GO rec
DBrLOCK()
DBRECALL()
DBrunLOCK()
RETURN Nil
work!! the record comes recalled
Tanks for help
Frank
when I press the key [-] [delete] on the bar [dbnavigator] the current
[record] comes
immediately DELETED while I want to make appear a message box of
confirmation "DELETE? YES/ NO"
METHOD DBNavigator1ClickDelete( oSender ) CLASS Terzisti
::oMessageBox2:cTitle := "Elimina rec. n."+TRIM(STR(::oDBFDataSet1:RECNO()))
::oMessageBox2:BEEP()
::oMessageBox2:RUN()
IF ::oMessageBox2:nResult = 2
GO rec
DBrLOCK()
DBRECALL()
DBrunLOCK()
ENDIF
RETURN Nil
don't work!! the [record] stays [deleted]
WHY??
METHOD Button3Click( oSender ) CLASS Terzisti
GO rec
DBrLOCK()
DBRECALL()
DBrunLOCK()
RETURN Nil
work!! the record comes recalled
Tanks for help
Frank