Skip to Content
0
Former Member
Nov 29, 2006 at 05:32 PM

IF that does not work

26 Views

IF eq '#' does not work!

i debug and i can see the value # in the variable but never do the next line!

  1. is a char type or ?

DATA:

linea(20),

zlineas type n.

zlineas = STRLEN( linea ).

if zlineas NE 0.

zlineas = zlineas - 1.

describe field linea+zlineas(1) type zchar.

  • move linea+zlineas(1) TO zchar.

  • if not is numeric zchar.

<b> if linea+zlineas(1) = '#'.</b>

linea = linea(zlineas).

endif.

endif.