EXTRACTING CHARACTERS FROM THE RIGHT SIDE

mkpjsrmkpjsr Member Posts: 587
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

  • vijay_gvijay_g Member Posts: 884
    A := 'avsdfg';
    Str := COPYSTR(A,STRLEN(A)-2,STRLEN(A));
  • mkpjsrmkpjsr Member Posts: 587
    hi


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

    ans will be -gf

    how i will do this
  • vijay_gvijay_g Member Posts: 884
    Check your previous post what you wanted?

    Can't you rebuild(last 3 char) these last characters one by one from back?
Sign In or Register to comment.