-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InputBox followed by MsgBox in Switch/Case statements #294
Comments
Turns out the reason this doesn't convert properly is because there's a newline between |
Confirmed! Good call! Regards, Joe |
The issue is on this line } else if (RegExMatch(LineContSect, "i)^\s*MsgBox([,\s]|$)")) { The regex only checks for msgboxs with newlines in front, so case is unintentionally working correctly MsgBox, Not this one
if false {
; False
} else MsgBox, 4,, This One
IfMsgBox, Yes
MsgBox, Correct one It might be worth adding the var to all msgbox with 40 lines, as there'll be lots of issues with conditional msgboxes |
V1:
V2 (Converted):
V2 (Expected):
Enter a value a second time in the InputBox to get the error. Without putting "msgResult:=" in front of each MsgBox in the Switch/Case statements, you get this error:
Regards, Joe
The text was updated successfully, but these errors were encountered: