It does it when the user presses Cancel, but not when the window is closed with 'X'.
- Code: Select all Expand view RUN
DEFINE DIALOG oDlg OF Win_main TITLE "Move Record" SIZE 300, 150
@ 1, 1 SAY 'Move this record to :'
@ 3, 5 BUTTON but_move PROMPT "Move" SIZE 30, 10 DEFAULT ;
ACTION ( oDlg:END() ) // MSGSTOP( "Incorrect username or password", "Error" ) )
@ 1, 9 RADIO nChoice PROMPT "&Prospective Database", "&Free Database" OF oDlg
@ 3, 15 BUTTON but_cancel PROMPT "Cancel" SIZE 30, 10 ACTION (nChoice:=0, oDlg:END())
ACTIVATE DIALOG oDlg CENTER VALID ( .T. )
MSGINFO(STR(nChoice))