全部博文(38)
发布时间:2015-05-22 10:08:37
DATA: STR(20),STR2(20),N.STR = ' abcade*'.WRITE STR.IF SUBSTRING( VAL = STR OFF = STRLEN( STR ) - 1 LEN = 1 ) = '*'. STR = SUBSTRING( VAL .........【阅读全文】
发布时间:2015-05-11 22:02:18
"替换字符串中的某一个字符DATA:lv_char TYPE c VALUE 'C01' LENGTH 10.lv_char+0(1) = 'B'.WRITE:lv_char.OVERLAY lv_char WITH 'B' ONLY lv_char.WRITE: / lv_char.REPLACE FIRST OCCURRENCE OF 'C' IN LV_CHAR WITH 'B'.WRITE: / lv_char.此三种方法均能将C01转变成B01..........【阅读全文】