Página 1 de 1

DBNAVIGATOR

Publicado: Vie May 14, 2010 3:33 pm
por Frank
Ciao a tutti
quando premo il tasto - delete sulla barra dbnavigator il record corrente
viene immediatamente DELETED mentre voglio che compaia un message box di
conferma
ho provato così :
METHOD DBNavigator1ClickDelete( oSender ) CLASS Terzisti
::oMessageBox2:BEEP()
::oMessageBox2:RUN()
IF ::oMessageBox2:nResult = 2
::oDBFDataSet1:RECALL()
ENDIF
RETURN Nil
ma non funziona !! il record rimane deleted
qualcuno mi sa dire come si fa?
Grazie Frank

DBNAVIGATOR

Publicado: Vie May 14, 2010 7:04 pm
por Ashvin Adodra
Frank,
I do not understand your language, but from the code which you have
given, it seems that you want to recall the deleted record. If it is so, try
this
before delete save the record no to a variable
nRec:= ::oDBFDataSet1:recno()
for recall
IF ::oMessageBox2:nResult = 2
::oDBFDataSet1:goto(nRec)
::oDBFDataSet1:RECALL()
ENDIF
Ashvin
"Frank" <info@novatron.it> wrote in message
news:4bed510e$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Ciao a tutti
>
> quando premo il tasto - delete sulla barra dbnavigator il record corrente
> viene immediatamente DELETED mentre voglio che compaia un message box di
> conferma
>
> ho provato così :
>
> METHOD DBNavigator1ClickDelete( oSender ) CLASS Terzisti
> ::oMessageBox2:BEEP()
> ::oMessageBox2:RUN()
>
> IF ::oMessageBox2:nResult = 2
> ::oDBFDataSet1:RECALL()
> ENDIF
> RETURN Nil
>
> ma non funziona !! il record rimane deleted
>
> qualcuno mi sa dire come si fa?
>
> Grazie Frank
>