SBendBuckeye
Programmer
Hello All,
I need to determine the maximum length for a long name field based on current data. Is there a Font Metric equivalent to Length? With proportional fonts, a name with several punctuation characters will show longer even though it does not display that way.
Here is the formula field I am currently using in test mode:
WhilePrintingRecords;
Global StringVar MaxString;
If Length(Trim({LeaseCustomer.CustName})) > Length(MaxString) Then
MaxString := Trim({LeaseCustomer.CustName});
MaxString;
Any ideas or suggestions as to how to incorporate Font Metrics into the process would be appreciated!
Have a great day!
j2consulting@yahoo.com
I need to determine the maximum length for a long name field based on current data. Is there a Font Metric equivalent to Length? With proportional fonts, a name with several punctuation characters will show longer even though it does not display that way.
Here is the formula field I am currently using in test mode:
WhilePrintingRecords;
Global StringVar MaxString;
If Length(Trim({LeaseCustomer.CustName})) > Length(MaxString) Then
MaxString := Trim({LeaseCustomer.CustName});
MaxString;
Any ideas or suggestions as to how to incorporate Font Metrics into the process would be appreciated!
Have a great day!
j2consulting@yahoo.com