Brian Dunning's FileMaker Custom Functions

Pad ( _input ; _char ; _length ; _left_or_right )

Padds a string on a given length, left or right. Not Recursive.

  Average rating: 4.2 (39 votes) Log in to vote

Fabrice Nordmann   Fabrice Nordmann - Show more from this author
1-more-thing
https://www.1-more-thing.com

Share on Facebook Share on Twitter

  Sample input:
Pad ( "James" ; "+-" ; 10 ; "Left" )
Pad ( "45.52" ; "." ; 15 ; "Right" )
  Sample output:
James+-+-+

..........45.52

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

Padds a string on a given length, left or right. Not Recursive.

 

Comments

whardy   whardy
Aug 13, 2020
Can someone tell me why the 9 in the Substitute function works like it does? I can't find any documentation on this. It's a great function! I'm just trying to figure out why it works.
 
Fabrice Nordmann   Fabrice Nordmann, 1-more-thing
Aug 13, 2020
hello,
just do the math ;)
10-1 = 9
100-1 = 99
1000-1 = 999...
 

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: