CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    How can I find out the first few charachters in a string?

    I need to find the first 5 charachters in a string I tried puting the source string into a String * 5 but it did not work can anyone help???

    [email protected]


  2. #2
    Join Date
    Oct 1999
    Location
    Florida
    Posts
    36

    Re: How can I find out the first few charachters in a string?

    strName = "123Holdon"
    firstfive = left$(strName,5)
    or
    firstfive = mid$(strName,1,5)

    whg

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