Results 1 to 6 of 6

Thread: [RESOLVED] Get length of string minus the line feeds

Threaded View

  1. #1

    Thread Starter
    VB For Fun Edgemeal's Avatar
    Join Date
    Sep 2006
    Location
    WindowFromPoint
    Posts
    4,255

    Resolved [RESOLVED] Get length of string minus the line feeds

    Need to get length of a string minus the line feed chars and came up with this. Is there a better/more efficient way?

    Code:
    Function GetLenMinus_LF(s As String) As Integer
        s = s.Replace(ControlChars.Lf, String.Empty)
        Return s.Length
    End Function
    Last edited by Edgemeal; Jan 28th, 2012 at 12:35 AM. Reason: resolved

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