2009 Sep 30 6:29 AM
Hi all,
need to make the changes to the string expect the first and last three characters of the string.
any suggestions.
thanks
2009 Sep 30 6:44 AM
Hi, All
asking and replying to Basic Question are against the Forum Rules
Please Search Before Posting
Faisal
Hi, All
asking and replying to Basic Question are against the Forum Rules
Please Search Before Posting
Faisal
2009 Sep 30 6:37 AM
Hi,
hope this will work...
data : str type string value '$Good morning$$$'.
data : lv_length type i.
lv_length = strlen(str).
lv_length = lv_length - 3.
str+1(lv_length) = 'Bad0 Morning'.
"Out put str = '$Bad0 morning$$$'
2009 Sep 30 6:40 AM
you can follow the below steps...
data: l_var type string, ===> Your input string
l_len type i.
l_len = strlen( l_var ).
l_len = l_len - 1
l_var0+(1) =======>make change to First charecter...
l_var0+l_len(1 ) =====>make change to Lsst charecter
Regards, Sri
2009 Sep 30 6:44 AM
Hi, All
asking and replying to Basic Question are against the Forum Rules
Please Search Before Posting
Faisal
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |