Determine if text is overflowing field bounds on layout.
Sample Input:
ActualLineCount ( Overflow::Text ; 30 )
Sample Output:
6
Description:
Have you ever needed to know if data is overflowing the boundaries of the field in which it is being displayed? For example, maybe you want to use conditional formatting to notify the user that they have entered too much text to be displayed on a printout. This can be a tricky thing to determine when data can contain carriage returns.
This custom function will solve the problem for you, with a couple of caveats:
- You need to use a monospace font on the field
- You can not allow tabs in your data because it is impossible to determine where the tab stops are. Since you have to use a monospace font anyway, you can use an autoenter calc to replace tabs with 4 spaces.
- You might want to add a platform check to address font size differences on Mac and Windows.
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
Add progress bars to those slow scripts in your FileMaker Pro solution. Click
here.
Custom Function Authors:
Link to all of your own custom functions on this site with the following URL:
http://www.briandunning.com/filemaker-custom-functions/results.php?author=Your
Name Here