Navigation:  Reference > Functions >

FirstDisplayableChar()

Print this Topic Previous pageReturn to chapter overviewNext page

 

FCHR(1,2)

 

PURPOSE

This function will return the first displayable (non-space) character in an A type field or the position value of that character.

 

PARTS

 

1 f/c/eRequired - The field to be checked.  Must be an A type field.

 

2 f/c/eIf 'C' the function will return the character; if 'L' the location of the first 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

LCHR()

 

EXAMPLE

define x type a size 20

define i type i

define a type a size 1

x = '    100.21'

a = fchr(x,'c')

// a = '1'

 

i = fchr('    100.21','l')

// i = 5

 

 


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