V
Vamsi
Hi,
I am trying a basic opearation of splitting a multiline value to an
array of single lines(Actually making Address into AddressLine1,
AddressLine2).
I used Environment.NewLine in split, I could get only 1st line, but it
is not returning 2nd line.
here's code:
string[] address = null;
string ssep = Environment.NewLine;
char[] sep = ssep.ToCharArray();
address = this.AddressLine1.Split(sep);
this.AddressLine1=address[0].ToString();
this.AddressLine2=address[1].ToString();
Am I doing anything wrong?
Thanks,
Vamsi
I am trying a basic opearation of splitting a multiline value to an
array of single lines(Actually making Address into AddressLine1,
AddressLine2).
I used Environment.NewLine in split, I could get only 1st line, but it
is not returning 2nd line.
here's code:
string[] address = null;
string ssep = Environment.NewLine;
char[] sep = ssep.ToCharArray();
address = this.AddressLine1.Split(sep);
this.AddressLine1=address[0].ToString();
this.AddressLine2=address[1].ToString();
Am I doing anything wrong?
Thanks,
Vamsi