Results 1 to 3 of 3

Thread: MsgBox/VBScript-Choosing Buttons

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    Someplace 'ore the rainbow
    Posts
    392

    MsgBox/VBScript-Choosing Buttons

    How can I have a Msgbox show Yes/No buttons in VBScript instead of just "Ok"?

    cjqp
    When your answer is the Arc Sin of 1.015, you should check your Pythagorean triple.

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877

    Re: MsgBox/VBScript-Choosing Buttons

    Originally posted by cjqp
    How can I have a Msgbox show Yes/No buttons in VBScript instead of just "Ok"?

    cjqp
    Put VBYesNoCancel or 3 e.g

    VB Code:
    1. Msgbox "hello", vbYesNoCancel
    2. MsgBox "Hello", 3

    The other Constant.
    CONSTANT VALUE DESCRIPTION
    VBOKOnly 0 OK button
    VBOKCancel 1 OK and cancel buttons
    VBAbortRetryIgnore 2 abort, retry, ignore buttons
    VBYesNoCancel 3 yes, no cancel buttons
    VBYesNo 4 yes, no buttons
    VBRetryCancel 5 retry, cancel buttons
    VBCritical 16 critical message icon
    VBQuestion 32 warning query button
    VBExclaimation 48 warning message icon
    VBInformation 64 information message icon
    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    Someplace 'ore the rainbow
    Posts
    392
    tyvm, for some strange reason I thought the 2nd variable "slot" was for the box's title, I forgot about looking at VB's help about it...

    cjqp
    When your answer is the Arc Sin of 1.015, you should check your Pythagorean triple.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width