Hi sir this is lavanya. I am begginer in vb.net. I have a problem in deleting the first two words in a string. I am not using the loops.
lavanya uppala
0
Newbie Poster
Recommended Answers
Jump to PostIf you don't want to use a loop, you could use "Substring" and "IndexOf(" ").
Jump to PostFrankly, I don't see how you can do this without a loop, but here is one solution :
Sub Main() Console.WriteLine(removeFirstTwoWords("word1 word2 word3 word4")) Console.ReadKey() End Sub Function removeFirstTwoWords(s As String) As String Dim a() As String = Split(s, " ") Dim result As String = …
All 5 Replies
cgeier
187
Junior Poster
PerplexedB
2
Newbie Poster
cgeier
187
Junior Poster
cgeier
187
Junior Poster
PerplexedB
2
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.