‎2009 Jun 30 4:27 PM
Hi,
I have to right trim a string which is not working when I tried the below,
eg : var = "abcdefgh ".
In the above I want to remove the trailing 2 spaces
I tried
shift var right deleting trailing space.
which completely cleared var.
Please help me on resolving this...
‎2009 Jun 30 5:23 PM
‎2009 Jun 30 5:17 PM
So what exactly is not working? It created following program, and it seems to be working just fine...
DATA : var TYPE char10 VALUE 'abcdefgh ',
length TYPE i.
length = NUMOFCHAR( var ).
WRITE:/1 length.
SHIFT var RIGHT DELETING TRAILING space.
length = NUMOFCHAR( var ).
WRITE:/1 var.
WRITE:/1 length.
‎2009 Jun 30 5:23 PM