ActualLineCount ( Text ; CharsPerLine )
Rate this function: Average rating: 3.7 (7 votes) Discuss this Custom Function
Jonathan Stark, Jonathan Stark Consulting
http://jonathanstark.com/
Determine if text is overflowing field bounds on layout.
Sample Input:
| ActualLineCount ( Overflow::Text ; 30 ) |
|
Sample Output:
|
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.
This is my Custom Function and I want to
edit it
Discuss:There are no comments yet. Be the first to post a comment about this Custom Function! Please try to keep it brief & to the point. Anyone can post:
|
Newest Custom Functions:
| 1. |
GroupRelationInfo ( FileTarget ; TableTarget ; Result ) |
| |
(Tue, Mar 16, 5:57am) |
| 2. |
GeoBox(latitude;longitude; radius) |
| |
(Mon, Mar 15, 11:04am) |
| 3. |
MonthNameList ( start; number; short ) |
| |
(Sun, Mar 14, 11:45pm) |
| 4. |
matchListAB( ListA ; ListB; match_Value; match_operator ; getN ) |
| |
(Sun, Mar 14, 10:29pm) |
| 5. |
Bin2Hex ( binary ) |
| |
(Sat, Mar 13, 10:08pm) |
| 6. |
SlideView (text) |
| |
(Sat, Mar 13, 8:40pm) |
| 7. |
HashFNV1a64 ( text ; empty ) |
| |
(Sat, Mar 13, 6:23pm) |
| 8. |
HashFNV1a32 ( text ; empty ) |
| |
(Sat, Mar 13, 5:55pm) |
 |
|