splitting in VB.NET without delimiters
-
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.....!!!!
-
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.....!!!!
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.
-
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.
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.
-
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.....!!!!
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 Charsplitseq = geneSeq.ToCharArray()
' Display the splitseq array
For Each ch As Char In splitseq
Console.WriteLine(ch)
NextFernando