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. .NET (Core and Framework)
  4. splitting in VB.NET without delimiters

splitting in VB.NET without delimiters

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpdatabasedata-structures
4 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.
  • P Offline
    P Offline
    poojapande
    wrote on last edited by
    #1

    hi i need to split a string ATTATCGATGATATTATTGGTCTTATTTGT into each alphabet.. after splitting each index of the array should hold each alphabet eg. splitseq (0) = A, splitseq(1) = T n so on till the end of the sequence.. FYI its a gene sequence pls reply urgently.....!!!!

    P F 2 Replies Last reply
    0
    • P poojapande

      hi i need to split a string ATTATCGATGATATTATTGGTCTTATTTGT into each alphabet.. after splitting each index of the array should hold each alphabet eg. splitseq (0) = A, splitseq(1) = T n so on till the end of the sequence.. FYI its a gene sequence pls reply urgently.....!!!!

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      So you're splitting it into a char array? There's a big hint in that sentence.

      "WPF has many lovers. It's a veritable porn star!" - Josh Smith

      As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

      My blog | My articles | MoXAML PowerToys | Onyx

      L 1 Reply Last reply
      0
      • P Pete OHanlon

        So you're splitting it into a char array? There's a big hint in that sentence.

        "WPF has many lovers. It's a veritable porn star!" - Josh Smith

        As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.

        My blog | My articles | MoXAML PowerToys | Onyx

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Don't cross-post. The daily CCC should be posted in the Lounge only. :laugh:

        Luc Pattyn [Forum Guidelines] [My Articles]


        The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


        1 Reply Last reply
        0
        • P poojapande

          hi i need to split a string ATTATCGATGATATTATTGGTCTTATTTGT into each alphabet.. after splitting each index of the array should hold each alphabet eg. splitseq (0) = A, splitseq(1) = T n so on till the end of the sequence.. FYI its a gene sequence pls reply urgently.....!!!!

          F Offline
          F Offline
          Fernando Soto
          wrote on last edited by
          #4

          Hi poojapande; You can use the ToCharArray method of the string class as shown in the code snippet.

          Dim geneSeq As String = "ATTATCGATGATATTATTGGTCTTATTTGT"
          Dim splitseq() As Char

          splitseq = geneSeq.ToCharArray()

          ' Display the splitseq array
          For Each ch As Char In splitseq
          Console.WriteLine(ch)
          Next

          Fernando

          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