Trimming a field.
I am relatively new to FastReports, and I am trying to format a field. The field is in a database table, ORDR. The field is ADDRESSLINE1.
I need to trim this field to the first 32 characters, which the substring or trim function works fine on. The problem is that if this field isn't 32 characters or more, that I wind up getting an index error because the field doesn't reach the range of 32 characters.
How can this be coded so that it can get it to work?
Comments
Did you try to use Copy function?