Rajkumar R

Rajkumar R

  • NA
  • 183
  • 220.1k

How to split this (I want to take the value alone in array variable)

Feb 22 2012 5:54 AM
i have an arugument like this
vXMLStream = YYYYMM="200502" ename="RAJ" age="23" sex="Male" category="Poor" edu_qualification="BBA" community="SC" religion="HINDU" occupation="farmer" month_income="2000"
here i want to split this and to store in an array variable. for that i tried the following.
Dim sourceString As String = vXMLStream
Dim arrayOfStrings() As String = sourceString.Split(" ")
System.Web.HttpContext.Current.Response.Write("<script language='javascript'>alert('The following errors have occurred:\n" + arrayOfStrings(2) + "' );</script>")
But Now once i print the data i am getting output like this
YYYYMM="200502"
ename="RAJ"
age="23"
But i want to o show like this
200502
RAJ
23
Male
Poor
please post solution for this post



Answers (3)