Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: how to compare left 2 and right 2 characters

$
0
0

Hi Mandy,

 

Here is solution for your requirement.

Considering Both texts as v_txt1 and v_txt2.

 

*declare one variable:

DATA v_length type I.

 

v_length = strlen(v_txt2) - 2.

 

* compare 1st 2 letter of 1st string with last two letters of second string:

if v_txt1(2) = v_txt2+v_length(2).

     *your logic.

endif.

 

Please reward if usefull.

 

Regards,

Shyam Goyal


Viewing all articles
Browse latest Browse all 10482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>