Help with Array (splitting)
Hi,
I am trying to split a single line of data into three separate parts so that they can be displayed in different textboxes. The data looks like this:
item1_item2_item3
The code that I tried is:
Dim arrayLines() As String
Dim record As String
record = Subs.Text
arrayLines = record.Split("_")
TextBox1.Text = arrayLines(0)
TextBox2.Text = arrayLines(1)
I don't seem to have much luck, I don't even get an error message when I click on the button. Any suggestions..?
22 Minutes
Discussion Span
Related Article: How to validate string format vb.net
is a solved VB.NET discussion thread by jbutardo that has 10 replies, was last updated 1 year ago and has been tagged with the keywords: format, string, validation, vb.net.
collin_ola
Junior Poster in Training
55 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
As always, worked perfectly!! Thanks!
collin_ola
Junior Poster in Training
55 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Answered as of 1 Year Ago by
M.Waqas Aslam