Suggested new filter Add line widths

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
dfhtextpipe
Posts: 986
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Suggested new filter Add line widths

Post by dfhtextpipe »

In the Add branch of the Filter library, it could be useful to provide a new filter to Add line widths.

Currently, I have to resort to using the Excel™ formula =LEN(B1) to get this type of data.

The UI for this filter should include the means to specify Format as under Add line numbers.

David
David
User avatar
Fixer
Posts: 25
Joined: Thu Jul 31, 2008 6:39 am
Location: European Union > Poland
Contact:

Re: Suggested new filter Add line widths

Post by Fixer »

good idea!
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Suggested new filter Add line widths

Post by DataMystic Support »

Hi David - do you mean add the length of the line?

If so, this is very easy to do as follows with a scripting filter:

Code: Select all


function processLine(line, EOL)
  processLine = line & " " & len(line) & EOL
end function

sub startJob()
end sub

sub endJob()
end sub

function startFile()
  a = 0
  startFile = ""
end function

function endFile()
  endFile = ""
end function

Post Reply