LCHR(1,2)
PURPOSE
This function will return the last displayable (non-space) character in an A type field or the position value of that character.
PARTS
1 f/c/e | Required - The field to be checked. Must be an A type field. |
2 f/c/e | If 'C' the function will return the character; if 'L' the location of the last character. Default value is 'C'. |
RETURN TYPE
A - If 'C' the function returns a single A type character.
I - If 'L' the function returns an I type value.
SEE ALSO
FCHR()
EXAMPLE
define x type a size 20
define i type i
define a type a size 1
x = 'ABCD '
a = lchr(x,'c')
// a = 'D'
i = lchr(x,'l')
// i = 4
Page url: http://www.cassoftware.com/tas/manual/lastdisplayablechar().htm