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. string

string

Scheduled Pinned Locked Moved Visual Basic
help
5 Posts 4 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.
  • W Offline
    W Offline
    WhiteGirl23
    wrote on last edited by
    #1

    Hi, I must split a string after the numbers of his letters(the size of the string). i want to do something like this: dim str as string If Len(str) > 4000 Then str = str.Split(...) help please regards.

    C S 2 Replies Last reply
    0
    • W WhiteGirl23

      Hi, I must split a string after the numbers of his letters(the size of the string). i want to do something like this: dim str as string If Len(str) > 4000 Then str = str.Split(...) help please regards.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      use the SubString method instead.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

      1 Reply Last reply
      0
      • W WhiteGirl23

        Hi, I must split a string after the numbers of his letters(the size of the string). i want to do something like this: dim str as string If Len(str) > 4000 Then str = str.Split(...) help please regards.

        S Offline
        S Offline
        shally_79
        wrote on last edited by
        #3

        hello dear, u can use this str = Microsoft.VisualBasic.Mid(str, 4000) or use str = str.Substring(4000) love shally

        sdf

        W G 2 Replies Last reply
        0
        • S shally_79

          hello dear, u can use this str = Microsoft.VisualBasic.Mid(str, 4000) or use str = str.Substring(4000) love shally

          sdf

          W Offline
          W Offline
          WhiteGirl23
          wrote on last edited by
          #4

          thanks,it works

          1 Reply Last reply
          0
          • S shally_79

            hello dear, u can use this str = Microsoft.VisualBasic.Mid(str, 4000) or use str = str.Substring(4000) love shally

            sdf

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            shally_79 wrote:

            str = Microsoft.VisualBasic.Mid(str, 4000) or use str = str.Substring(4000)

            Note that these give different results, as indices are one based in Mid and zero based in Substring.

            --- single minded; short sighted; long gone;

            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