Small messagebox bug (?)

Discussion in 'Bug Reports' started by BjornF, May 24, 2007.

  1. BjornF

    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
     
  2. Erel

    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
     
  3. BjornF

    BjornF Active Member Licensed User

    And so I have learnt something new today...:)

    Björn
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice