CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 1999
    Location
    Austria
    Posts
    53

    Elements of a String

    How can I get the 3rd or 4th Element of a String


  2. #2
    Guest

    Re: Elements of a String


    Dim strThirdCharacter as string
    Dim strFourthCharacter as string
    Dim strMyString as string
    strMyString = "Testing"
    strThirdCharacter = mid(strMyString, 3, 1)' will be returned "s"
    strFourthCharacter = mid(strMyString, 4, 1)' will be returned "t"



    HTH
    Vlad



  3. #3
    Join Date
    Nov 1999
    Location
    Austria
    Posts
    53

    Re: Elements of a String

    thanks a lot
    mfG Pueromane


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured