Navigation:  Reference > Functions >

TrimField()

Print this Topic Previous pageReturn to chapter overviewNext page

 

TRIM(1,2)

 

PURPOSE

This function will return an A type field with the leading or trailing spaces deleted.

 

PARTS

1 f/c/eRequired - The value to be trimmed.  The original field is not changed.

 

2 f/c/e'T' - trim trailing spaces; this is the default value.

       'L' - trim leading spaces.

 

RETURN TYPE - A

If the receiving field is not long enough, the remaining characters will be truncated.

 

COMMENTS

You would use this function when concatenating (adding) A type fields together.  If the spaces aren't trimmed, there will probably be extra spaces in the resulting value.  This function can get rid of them.  You can also use the '*' when concatenating the fields.  For more information please see Mathmatical Operators.

 

 


Page url: http://www.cassoftware.com/tas/manual/trimfield().htm