Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hey all, I'm still learning c# and have a question about getting certain characters out of a string. I'm looking for the two characters that follow a delimiter. I want to take a string like this:

"~A ~B ~C3 ~D"

and put the characters after into an array:

myArray[0] = "A "

myArray[1] = "B "

myArray[2] = "C3"

...

The size of the array will be different every time so I need something similar to VB's ReDim Preserve as well. I can do this in VB 6.0 and .NET just fine. Anyone have any ideas on how to get it into C#?

Being smarter than you look is always better than looking smarter than you are.
Posted
I thought I had tried that before and it wasn't working but, now, it seems to work just fine. Thanks a lot!
Being smarter than you look is always better than looking smarter than you are.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...