Re: How to remove preceding blanks?



bru <bru@xxxxxxxx> wrote:

How to remove the preceding blank characters (I know TRIM to remove the
trailing blanks)

See the ADJUSTL intrinsic function. Yes, it just moves the blanks to the
end instead of removing them. But,

1. You could then use TRIM to remove the blanks from the end if desired.

2. Blanks on the end of filenames have no effect anyway. The standard
specifies that; it is not compiler dependent. Leading and trainling
blanks are different on this. As you have discovered, leading blanks can
have an effect.

--
Richard Maine
email: last name at domain . net
domain: summer-triangle
.



Relevant Pages

  • Re: Removing a character from a string
    ... |> seems to be removing that character, ... |> string may contain blanks in the string and those are NOT ... But it does "mess with" trailing blanks, ...
    (comp.lang.pl1)
  • Re: Counting Unique Values
    ... a range which may contain blanks. ... You can simplify it by removing the ^ ... and testing for blan k ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Removing empty cells
    ... Removing the blanks would either affect the cells below, ... the data will be inappropriate. ...
    (microsoft.public.excel.misc)
  • Re: getting format descriptor right
    ... If characters are transmitted to ... > initially filled with blanks. ... trailing blanks would be removed before writing. ... > standard to allow that. ...
    (comp.lang.fortran)
  • Re: remove trailing blanks
    ... a bash script that will remove trailing blanks ... nail blanks inside the string and will miss ...
    (comp.os.linux.misc)