From the FM:
CHAR.LENGTH. CHAR.LENGTH(strexpr). Numeric. Returns the length of
strexpr in characters, with any trailing blanks removed.
CHAR.SUBSTR. CHAR.SUBSTR(strexpr,pos[,length]). String. Returns the
substring beginning at character position pos of strexpr. The optional
third argument represents the number of characters in the substring. If
the optional argument length is omitted, returns the substring beginning
at character position pos of strexpr and running to the end of strexpr.
For example CHAR.SUBSTR(’abcd’, 2) returns ’bcd’ and CHAR.SUBSTR(’abcd’,
2, 2) returns ’bc’. (Note: Use the SUBSTR function instead of
CHAR.SUBSTR if you want to use the function on the left
side of an equals sign to replace a substring.)
--
Bruce Weaver
bwe...@lakeheadu.ca
http://sites.google.com/a/lakeheadu.ca/bweaver/Home
"When all else fails, RTFM."