get off spaces to the last of a string
Posted: Mon Jul 26, 2010 11:08 pm
Hello,
A question please. I have a field x(10). Inside I can have spaces at the last and I don't want them.
ex:
ABCDEFGHIJ -----------> ABCDEFGHIJ ---- OK
But:
ABCDEF + space + space + space + space --------------> I only want to obtain the string ABCDEF
I must read the field from the last character to the first one, until I find a not space
Thanks
A question please. I have a field x(10). Inside I can have spaces at the last and I don't want them.
ex:
ABCDEFGHIJ -----------> ABCDEFGHIJ ---- OK
But:
ABCDEF + space + space + space + space --------------> I only want to obtain the string ABCDEF
I must read the field from the last character to the first one, until I find a not space
Thanks