B BjornF Active Member Licensed User Longtime User May 24, 2007 #1 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 Björn
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 Björn
Erel B4X founder Staff member Licensed User Longtime User May 24, 2007 #2 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
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
B BjornF Active Member Licensed User Longtime User May 24, 2007 #3 And so I have learnt something new today... Björn