glenn <(E-Mail Removed)> wrote:
> Thanks guys. What about this, will this also work?
>
> Convert.ToChar( myvar.substr( 1, 1) ) == 65
No, because there is no "substr" method. You can use Substring, but
that seems pretty pointless.
> which is the best method? as far as the fastest executing?
Using the indexer is faster, but more importantly it's clearer. Chances
are it's not going to be the bottleneck anyway.
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too