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
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?
 

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.

Under construction. Email me your wish list for improvements.