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
Suggested new filter Add line widths
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Suggested new filter Add line widths
good idea!
- 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
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:
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