Chomp method



Hello

I am wondering how the chomp function works. I am looking to see how I can truncate new line and/or carriage returns from a string. Will chomp do nothing if there are no carriage return or line feed at the end. If the end of the string has a space will it leave it alone?

Andrew


.



Relevant Pages

  • Re: Chomp method
    ... can truncate new line and/or carriage returns from a string. ... do nothing if there are no carriage return or line feed at the end. ... If $/ contains a string then chomp() removes the contents of the $/ variable ...
    (perl.beginners)
  • Re: Replace function and carriage returns
    ... By "second row of the destination table" do you mean the second ... immediate right of the carriage return. ... Function StripCr(ByVal sStr As String) As String ...
    (microsoft.public.word.vba.general)
  • Re: Fixed Address Function
    ... Public Function FixedAddressAs String ... 'vbCrLf Carriage return/line feed ... Dim newAddress As String ... Dim strLine As String ...
    (microsoft.public.access.queries)
  • Re: can I split a C string
    ... Actually I am writing portable code that runs on windows & ARM9. ... the string on console window(here "\r" is not ... the carriage from right to left, the designers split the task into two - ... paper up a line - so that it would require two input characters to do this ...
    (comp.lang.c)
  • RE: Replace function and carriage returns
    ... immediate right of the carriage return. ... Function StripCr(ByVal sStr As String) As String ... Dim nPos As Long ... I have a table containing formfields. ...
    (microsoft.public.word.vba.general)