Results 1 to 4 of 4

Thread: help with syntax for messagebox [resolved]

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2004
    Location
    in the heart of the Mediterranean
    Posts
    1,143

    help with syntax for messagebox [resolved]

    Code:
    If MessageBox.Show(String.Format("QTY: {0} ;  Book: {1} ; LANo: {2}", s0, s1, s2, "Confirm"), MessageBoxButtons.OKCancel, MessageBoxIcon.Question) = Windows.Forms.DialogResult.OK Then
    Hi I have a , or ) misplaced. Does anyonw know how it should be done pls?
    Last edited by angelica; May 27th, 2008 at 04:47 PM.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: help with syntax for messagebox

    The ) after the "Confirm" should be before the "Confirm".

  3. #3
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: help with syntax for messagebox

    vb.net Code:
    1. If MessageBox.Show(String.Format("QTY: {0} ;  Book: {1} ; LANo: {2}", s0, s1, s2), "Confirm", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) = Windows.Forms.DialogResult.OK Then
    that better?

    edit: damn beaten again
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2004
    Location
    in the heart of the Mediterranean
    Posts
    1,143

    Re: help with syntax for messagebox

    okay, thanks

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