EXTRACTING CHARACTERS FROM THE RIGHT SIDE

hi

I want to extract 3 characters from right side of avsdfg string using a function .
plz suggest me how i will do this


ans will be dfg.

Comments

  • A := 'avsdfg';
    Str := COPYSTR(A,STRLEN(A)-2,STRLEN(A));
  • hi


    i want to display 2 characters from the right side in
    sdfg string.

    ans will be -gf

    how i will do this
  • Check your previous post what you wanted?

    Can't you rebuild(last 3 char) these last characters one by one from back?