locked
C# - Get specific character from a string

    Question

  • Hi,

    If I have the string "World", how do I get character number 3 ('r')?

    Something like Vb's myChar = Mid()

    Thanks in advance,

    Aldo.

    Sunday, February 03, 2008 6:44 AM

Answers

  • Found it,

    Code Snippet

    myString = "world";

    myChar = myString.Substring(index,length);

     

    Sunday, February 03, 2008 11:59 AM