Skip to Content
0
Former Member
Dec 04, 2007 at 05:08 PM

HOW TO READ CHAR FROM RIGHT TO LEFT

587 Views

HI Gurus,

I have this field that has up to 20 characters. But the problem is that sometimes it might not be filled (that is it might just have 15 characters).

How can I read the the characters from right to left. For example,

01234567898765433, and i just want the last 7, i.e 8765433.

I know i can just do var+10(7). but i dont want to do it like that because sometimes the length of the field can change. The most important, is to be able to read it from right to left so that i can have correct data even if the length is not up to 20 sometimes.

thanks all.

Reward will be given.