Suggested new filter Add line widths

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

Post Reply
DFH
Posts: 956
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Suggested new filter Add line widths

Post by DFH » Mon Jun 01, 2020 8:33 pm

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

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

Re: Suggested new filter Add line widths

Post by Fixer » Tue Jun 16, 2020 9:16 am

good idea!

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

Re: Suggested new filter Add line widths

Post by DataMystic Support » Wed Sep 23, 2020 10:05 pm

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

Regards,

Simon Carter, https://www.DataMystic.com
https://www.JadeDiabetes.com - Insulin dose calculator for Type 1 diabetes
https://www.DownloadPipe.com - 250,000 free software downloads

Post Reply