storing parts of a string

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
demonmaster3k





Posts: 148
Joined: Mon Sep 05, 2005 10:25 am

storing parts of a string

Post 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#?
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Re: storing parts of a string

Post 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);
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
demonmaster3k





Posts: 148
Joined: Mon Sep 05, 2005 10:25 am

Post by demonmaster3k »

thank you
Post Reply