Ok here is what I am trying to do first the contents of the string
I have an array that has forty or more of the following each element of the array contains data like this I need to parse
NOTE!!!!!! Some of the names are first middle last not just first and last
Anyway I need
I need descriptions in labels and info in other labels
like this
Name: John Smith
Race: White
Sex: Male
Age: 25
ect ect until it gets to the TPD# I need that stripped and all following put into a label of its own
ie; Guy did what ever he did and he is in trouble for it LOL
anyway .... I tried a multiple delimiter spit but the results left empty elements of the array ....
Anyone got some ideas how I might best parse this?
Heres the code I used and tried to modify but it wont work exactly right
Help much appreciated
Mark
I have an array that has forty or more of the following each element of the array contains data like this I need to parse
Code:
Name: Lanton Lamho Race: White Sex: Male Age: 18 DOB: 05-10-90 Height: 506 Weight: 152 Hair: Blk Eyes: Brown TPD#Lanton Lamho broke into the Quickie Mart located at 5310 S. Peoria Ave. The suspect used a manhole cover to throw...
NOTE!!!!!! Some of the names are first middle last not just first and last
Anyway I need
I need descriptions in labels and info in other labels
like this
Name: John Smith
Race: White
Sex: Male
Age: 25
ect ect until it gets to the TPD# I need that stripped and all following put into a label of its own
ie; Guy did what ever he did and he is in trouble for it LOL
anyway .... I tried a multiple delimiter spit but the results left empty elements of the array ....
Anyone got some ideas how I might best parse this?
Heres the code I used and tried to modify but it wont work exactly right
Code:
Dim values As String
values = "Name: John Smith Race: White DOB: 1/22/60"
Dim sites As String() = Nothing
Dim sep(3) As Char
sep(0) = ": "
sep(1) = " Race:"
sep(2) = " DOB:"
sites = values.Split(sep, 9)
Dim s As String
For Each s In sites
rtb1.Text = rtb1.Text & s.Trim(" ") & vbCrLf
Next s
Help much appreciated
Mark