Jump to content

Alternative of Mid

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Johnnio

Johnnio

    Newbie

  • Members
  • PipPip
  • 17 posts
Well, since I've used Visual Basic things have been pretty simple. But now I've moved onto C# and things have been going smooth so far, I know the basics of splitting etc. But I was wondering if theres an alternative of the mid function of Visual Basic 6 in C#?

Thanks guys.
John Meikle -
"Wannabe programmer"

#2
Lop

Lop

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,172 posts
If I am right the mid function returns part of a string? From index to index, right?

If so, you can use the String.Substring of C#:

String.Substring Method

#3
Johnnio

Johnnio

    Newbie

  • Members
  • PipPip
  • 17 posts
Yeah, I'll mess around with it. Thanks.
John Meikle -
"Wannabe programmer"