// 1
:bKeyChar := { |nKey| If( nKey == VK_RETURN, ;
( nSelect := PRD->veld, oDlg:End() ), nil ) }
// 2
:bKeyDown := { |k| If( k == VK_RETURN,( oDlg1:end() ),;
if (K == VK_DELETE, Del_row(oBrw),nil )) }
// 3
oBrwK:bKeyDown := {|nKey| MyKey(nKey,oBrwK,oDlgK) }
Function MyKey(nKey,oGrid,oDlg)
Do case
case nKey==VK_RETURN
if msgYesNo("Wenst U deze klant te gebruiken")
oDbfinfo:klantcode = klant->klant_nr
oDbfinfo:firma = klant->naam_1
oDlg:End()
endif
// here your function of modify record
//case nKey==VK_INSERT
// here your function of add record
//case nKey==VK_DELETE
// here your function of delete record
//case nKey==VK_ESCAPE
//OTHERWISE
//IF nKey >= 96 .AND. nKey <= 105
// here your function of search record
//ELSEIF HB_ISSTRING(CHR(nKey))
// here your function of search record
//ENDIF
EndCase
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 76 guests