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. Split function

Split function

Scheduled Pinned Locked Moved Visual Basic
help
6 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.
  • A Offline
    A Offline
    amaneet
    wrote on last edited by
    #1

    Sir/Madam, I am facing problem in split function. The problem is Dim str as string = "12/12/1200" dim str1() as string = str.split("/") now i want the output in the form str1(0) = "12" str1(1) = "12" str1(2) = "1200" I am not getting this output. Please help Thanks and Regards Pankaj

    C 1 Reply Last reply
    0
    • A amaneet

      Sir/Madam, I am facing problem in split function. The problem is Dim str as string = "12/12/1200" dim str1() as string = str.split("/") now i want the output in the form str1(0) = "12" str1(1) = "12" str1(2) = "1200" I am not getting this output. Please help Thanks and Regards Pankaj

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

      What output are you getting ?

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      A 1 Reply Last reply
      0
      • C Christian Graus

        What output are you getting ?

        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

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

        Sir/Madam, I am getting error when i am writing the code line dim str1() as string = str.split("/") Please help.

        C 1 Reply Last reply
        0
        • A amaneet

          Sir/Madam, I am getting error when i am writing the code line dim str1() as string = str.split("/") Please help.

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

          Have you thought to read what the error is ? To check MSDN to make sure you're calling the function properly ?

          Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

          C 1 Reply Last reply
          0
          • C Christian Graus

            Have you thought to read what the error is ? To check MSDN to make sure you're calling the function properly ?

            Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

            C Offline
            C Offline
            Colin Angus Mackay
            wrote on last edited by
            #5

            Christian Graus wrote:

            Have you thought to read what the error is ?

            Surely that would be just too obvious!? :-D


            Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

            A 1 Reply Last reply
            0
            • C Colin Angus Mackay

              Christian Graus wrote:

              Have you thought to read what the error is ?

              Surely that would be just too obvious!? :-D


              Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

              A Offline
              A Offline
              arcticbrew
              wrote on last edited by
              #6

              I ran your code and it worked without error.

              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