Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Very simple question

Very simple question

Scheduled Pinned Locked Moved Visual Basic
tutorialhelpquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Boniolopez
    wrote on last edited by
    #1

    Hi all, I can't find how to break long string constants to the multiple lines. Example: Dim mystring as string string.insert(0, "VeryVeryVery... .LongLine") The VB don't understand, that the string constant continues on the nextline. Please help, Thanks in advance

    B A 2 Replies Last reply
    0
    • B Boniolopez

      Hi all, I can't find how to break long string constants to the multiple lines. Example: Dim mystring as string string.insert(0, "VeryVeryVery... .LongLine") The VB don't understand, that the string constant continues on the nextline. Please help, Thanks in advance

      B Offline
      B Offline
      beowulfagate
      wrote on last edited by
      #2

      You break long strings this way. dim mystring as string = "A very, very, very " & _ "Long line."

      1 Reply Last reply
      0
      • B Boniolopez

        Hi all, I can't find how to break long string constants to the multiple lines. Example: Dim mystring as string string.insert(0, "VeryVeryVery... .LongLine") The VB don't understand, that the string constant continues on the nextline. Please help, Thanks in advance

        A Offline
        A Offline
        axiomillies
        wrote on last edited by
        #3

        You shouldn't type a very long line in VB. It's really inconvenient. You may write it to a file such as *.txt, then load it to your string var. It's convenient that: you can easily repair the text.:cool: GF bos

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups