Brian Dunning's FileMaker Custom Functions

LineNumbering ( text ; start ; suffix )

Returns the given text with numbered lines

  Average rating: 4.5 (28 votes) Log in to vote

Daniele Raybaudi   Daniele Raybaudi - Show more from this author
ACI
http://www.aci.it

Share on Facebook Share on Twitter

  Sample input:
LineNumbering ( "aaaa aaa¶bbbbb bb¶ccc cccccccccccc" ; 1 ; ". ")
  Sample output:
1. aaaa aaa
2. bbbbb bb
3. ccc cccccccccccc

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

LineNumbering custom function

Author: Daniele Raybaudi

Format: LineNumbering ( text ; start ; suffix )

Parameters:
text - the text that we want to view with numbered lines
start - the number that we want to start from ( tipically 1 )
suffix - the string that we want to add to each line number ( minimum 2 chars ! )

Returns the given text with numbered lines

You can:

1. add one ore more new lines
2. break one or more lines
3. modify one or more lines
4. delete one or more lines
5. the max number of lines is 999

Example with Text =
aaaa aaa
bbbbb bb
ccc cccccccccccc

LineNumbering ( Text ; 1 ; ". ") returns:
1. aaaa aaa
2. bbbbb bb
3. ccc cccccccccccc

03/16/2007

 

Comments

Bernhard Sailer   Bernhard Sailer
Jun 7, 2015
Fine script. Are you shure you need the substitution-functions?
 
Philip McGeehan   Philip McGeehan, SMD Ltd
Nov 6, 2019
Works really well, thanks :)
 
Joshua Paul   Joshua Paul, Neo Code
Nov 15, 2023
very useful with layout calculations - <<ƒ:valuecount(DatabaseNames)>> : <<ƒ:substitute(linenumbering(DatabaseNames;1;". ");"¶";" ")>>
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: