Page 1 of 1

storing parts of a string

Posted: Fri Nov 16, 2007 7:18 am
by demonmaster3k
I'm working on an application in C# and i want to take parts of data in a string and store it another variable, similar to Visual Basic's Strings.Mid method

How do i do that? Is there a way to use the Strings.Mid method or a translation of that method in C#?

Re: storing parts of a string

Posted: Fri Nov 16, 2007 8:16 am
by Prey
demonmaster3k wrote:I'm working on an application in C# and i want to take parts of data in a string and store it another variable, similar to Visual Basic's Strings.Mid method

How do i do that? Is there a way to use the Strings.Mid method or a translation of that method in C#?
yourString.SubString(start, length);

Posted: Mon Nov 19, 2007 5:51 am
by demonmaster3k
thank you