Small messagebox bug (?)

BjornF

Active Member
Licensed User
At least I think it is a bug (a small one)

if msgbox("Exit?","Title", cMsgboxYesNo, cMsgboxQuestion) = cNo then Form1.CancelClose

gives the choice of answering yes or no, while:

if msgbox("Exit?", cMsgboxYesNo, cMsgboxQuestion) = cNo then Form1.CancelClose

(with no title) just gives an ok button :confused:

Björn
 

Erel

Administrator
Staff member
Licensed User
You can't omit the second argument if you are using the third argument.
You should write:
if msgbox("Exit?","", cMsgboxYesNo, cMsgboxQuestion) = cNo then Form1.CancelClose
 
Top