Link to home
Start Free TrialLog in
Avatar of czmelton
czmelton

asked on

Remove a line in ASCII

Here is the problem:

I need to remove the (blank) line between the -1 and -1 shown below:

 -37  PLATFORM PENE
  -1 TRATION$T.O.S

  -1  . EL. 38' 0"

Avatar of bobbit31
bobbit31
Flag of United States of America image

assuming there is no whitespace on that blank line:

strMyString = Replace(strMyString, vbCrLf & vbCrLf, VbCrLf)

which will replace 2 consecutive new line characters w/ 1
ASKER CERTIFIED SOLUTION
Avatar of amkarambelkar
amkarambelkar

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of czmelton
czmelton

ASKER

Thanks for the Help!