Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jun 2003
    Location
    California
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question vbscript line breaks

    instead of doing:
    msgbox ("something")

    i need a way to do something like making a list from the msgbox function as shown below

    ----
    press any number to continue:
    surface area of a shape (1)
    voulume of a shape (2)
    square root of a number (3)
    -----

    I was looking at www.w3schools.com and I did not see anything on line breaks

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    You can add breaks by using VbCrLf.

    ex.
    Code:
    msgbox("First Line" & VbCrLf & "Second Line")
    OracleGuy

  • #3
    Regular Coder
    Join Date
    Jun 2003
    Location
    California
    Posts
    231
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thanks oracleguy

    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
    •