Results 1 to 4 of 4

Thread: Message Box Problem?? *RESOLVED*

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2004
    Posts
    131

    Question Message Box Problem?? *RESOLVED*

    Ok this is what I got! All I want is for my Message Box to display the value of dblOrder and the value of strCost where I have them in RED. How do I do this??
    VB Code:
    1. Const AA As Double = 6.25
    2.  
    3. Dim strCost As String
    4. Dim dblOrder As Double
    5. dblOrder = Val(nudOrder.Text)
    6.  
    7. strCost = (dblOrder * AA).ToString("c")
    8.  
    9. MessageBox.Show("You ordered [COLOR=RED](dblOrder)[/COLOR] items at a total cost of [COLOR=RED](strCost)[/COLOR].", "Order")
    Last edited by twisted; Jun 17th, 2004 at 08:19 AM.
    Twisted

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: Message Box Problem??

    [QUOTE]Originally posted by twisted
    VB Code:
    1. MessageBox.Show("You ordered (" & Cstr(dblOrder) & ") items at a total cost of (" & strCost & ").", "Order")

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    May 2004
    Posts
    131
    Thanks a lot man! Worked great!
    Twisted

  4. #4
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    No problem. Thanks for adding Resolved to the title of the post.

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