... variable and not to change all the dialogs that I have already done for many years it is possible to use ( oDlg:end( IDOK ) ) and ( oDlg:end( IDCANCEL ) ) ? and use IF oDlg:nresult == IDOK orec:save() ENDIF if I have to change all the insertion dialogs to check the get controls with the lsave ...
... oBtnClose ; PROMPT "Chiudi" SIZE 130,60 PIXEL OF oDlg; RESOURCE "INVOICE_EXIT" FLAT RIGHT; FONT oFontBold ; ACTION ( oDlg:end( IDCANCEL ) ) you can move the mouse over therse buttons but you cannot execute the command of each buttons If you press "Save" buttons the ...
Hello, I compared the version where bAction of IDCANCEL works and the version where don't. I found this piece of code inside dialog.prg on method command: case nID == IDCANCEL .and. ! ::lModal if ::lValid() ::bValid ...
... ID 102 OF oDlg MEMO REDEFINE GET cPass ID 103 OF oDlg MEMO REDEFINE BUTTON ID IDOK OF oDlg ACTION OpenOdbc(cDsn, cName, cPass) REDEFINE BUTTON ID IDCANCEL OF oDlg ACTION oDlg:End() ACTIVATE DIALOG oDlg return nil STATIC FUNCTION OpenOdbc(cDsn, cName, cPass) Local oOdbc, oDlg local aFiles local ...