Results 1 to 6 of 6

Thread: VB5 problems!!!

  1. #1

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    I'm having some problems with my
    VB5.
    Every time use the vbYesNo or vbOKonly
    it doesn't make a Yes and No buttons, but
    Retry and Abort!!!!!!!
    Why??!!!!!!!!!!!!!!!!!!!!!!!

    / CyberCarsten

  2. #2
    New Member
    Join Date
    Nov 1999
    Posts
    8

    Post

    I'm just learning Visual Basic but I believe the following might be helpful:

    MsgBox "Message", vbOKOnly, "Name"

    Message = "Whatever you want to say.",
    vbOKOnly = the VBOKOnly button
    Name = "Whatever you want to called this"



    ------------------
    A. J.

  3. #3

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    Thank you!
    I'll try it!

  4. #4
    New Member
    Join Date
    Nov 1999
    Posts
    8

    Post

    Just wanted check to see if that worked ok for you.

  5. #5

    Thread Starter
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    Hi!
    I have just lost my copy of vb5, so i don't if it works....DAMN!!!!

    / CyberCarsten

  6. #6
    Junior Member
    Join Date
    Jun 1999
    Location
    Papillion, NE, USA
    Posts
    21

    Post

    There are 2 different versions of the Msgbox statement

    Doesn't return a value:

    MsgBox "Your Message",vbOKOnly, "Your Title"

    Does return a value:
    Dim RetCode As Integer

    RetCode = MsgBox ("Your Message", vbYesNo, "Your Title")

    Select Case RetCode

    Case vbYes
    'Case when user clicked yes

    Case vbNo
    'Case when user clicked no

    End Select

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