Ok I am trying to figure out how to have the program take a line of text and separate each comma'd section into it's own field. So far I have been able to write a code that gets an error of "Public member 'Text' on type 'String' not found." So basically the point of this program is if somebody enters into a text box their address, city, state, zip, and phone number, separated by commas, it can take each section and break them up into 6 different text boxes. Thanks for you help here is what I have so far.
Code:
Function BreakApart(ByVal txtrecord) As String
Dim LineOfText As String
'Dim i As Integer
Dim aryTextFile(5) As String
LineOfText = txtrecord.Text
aryTextFile = LineOfText.Split(",")
txtField1.Text = aryTextFile(0)
txtField2.Text = aryTextFile(1)
txtField3.Text = aryTextFile(2)
txtField4.Text = aryTextFile(3)
txtField5.Text = aryTextFile(4)
txtField6.Text = aryTextFile(5)
Return txtrecord
End Function