Hi guys.

Is there a way to do this?:

////////////////////////////////////////

try

if MessageDlg('Press Yes or No', mtConfirmation, [MBYES, MBNO], 0) = MRYES then GOtoEXCEPTend;

except
ShowMessage('The user clicked on YES button.');
end;

////////////////////////////////////////

Thank you.