Look at the code :
- Code: Select all Expand view
oCol:bEditWhen :={||ShowDlg(@oDDlg),;
SetActiveWindow(oDlg:hWnd) , .T. }
oCol:bEditValid := {|oGet|IIF(oDdlg<>nil,(oDdlg:end(),tracelog(oDdlg,"After")),);
, .T.}
The when clausule opens a dialog (shows some values) , the edit field become focus
The valid clausule doesn't close the dialog. Tracelog is executed , also oddlg:end()
Result :
Type: O >>>{ TDIALOG Object }<<<
Type: C >>>After<<<
Why is the dialog not closed and why is oDdlg <> nil ???????????
Frank