WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: pzig98 on October 30, 2014, 06:56:21 AM

Title: Remove FormFeed from .txt file
Post by: pzig98 on October 30, 2014, 06:56:21 AM

Hi,

Trying to remove form feed characters from text files...  I find no predefined constant, @FF in the manual...

Ideas?
Title: Re: Remove FormFeed from .txt file
Post by: JTaylor on October 30, 2014, 07:35:09 AM
Use the Num2Char() function.

   Num2Char(12)

Jim
Title: Re: Remove FormFeed from .txt file
Post by: pzig98 on October 30, 2014, 07:55:00 AM
So then,

FormFeed = Num2Char(12)

page = StrReplace(page,FormFeed,"")

?
Title: Re: Remove FormFeed from .txt file
Post by: JTaylor on October 30, 2014, 08:08:32 AM
That should work.  Assuming I read my ASCII chart correctly.

Jim
Title: Re: Remove FormFeed from .txt file
Post by: pzig98 on October 30, 2014, 08:46:50 AM
Works perfectly, Thanks..!