View Single Post
Old 03-08-2018, 06:21 AM
bighalo bighalo is offline
Registered User
Join Date: Mar 2018
Posts: 4
another problem.

result = crt.Dialog.MessageBox("gotcha","gotcha", ICON_STOP Or BUTTON_OK Or DEFBUTTON1 )
MsgBox "result=" & result
if result = IDOK then
MsgBox "About to exit Main() subroutine"
exit sub
end if

after click the OK button. result should be 1.

result = IDOK is not match.
result = 1 is.

if result = 1 then
exit sub
end if
then will end the script. this is what I had expected.
Reply With Quote