[a103] - MsgBox [BUG]
Posted: 24 Jun 2019, 10:43
The BUGUser pressed "Esc" but MsgBox return "OK". Actually in this case MsgBox return only "OK".
In this case MsgBox must return "" (nothing) when pressed "Esc" or clicked on "X".
In this case MsgBox return "OK" only if user pressed "OK" and "Cancel" when "Esc" or "X".
Suggestion:
If MsgBox closed with "X" then return ""
If MsgBox have option "Cancel" then when pressed "Esc" return "Cancel" else return "".
Best: when "Esc" or "X" return ""
Code: Select all
res:= MsgBox("Press Esc!")
MsgBox("User pressed : " res)
In this case MsgBox must return "" (nothing) when pressed "Esc" or clicked on "X".
Code: Select all
res:= MsgBox("Press Esc!",,"OC")
MsgBox("User pressed : " res)
Suggestion:
If MsgBox closed with "X" then return ""
If MsgBox have option "Cancel" then when pressed "Esc" return "Cancel" else return "".
Best: when "Esc" or "X" return ""