WrapText ( text ; width )
Wraps a text string to a maximum line width (number of characters)
Average rating: 4.1 (14 votes) Log in to vote
Andy Smith - Show more from this author |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
I needed to wrap the output of a templated html email to a maximum line length, so I came up with this.
In short it wraps any lines longer than a certain width, breaking at space characters. Be aware that words longer than the specified width will break across lines.
I intend to add some test shortly. Please let me know if you come across any issues.
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.