Hi all i am having my data as follows
52201 1 1 PPD1 111017111017 1111000020000003
Here i would like to replace the one with bold to 0000002 can any one help me. I used the following but i am unable to replace it
if (strBtchno1.StartsWith("5"))
{
iBtchno = Convert.ToInt16(strBtchno1.Substring(87, 7));
if (iBtchno > iBatchno)
{
iBtchno = iBtchno - 1;
strBtchno1 = strBtchno1.Substring(0,87) + iBtchno.ToString() + strBtchno1.Substring(7,(strBtchno1.Length - 7));
}
}
87 to 94my maximum length is94