REPORT z_barry_test.
DATA: char(20) TYPE c,
str TYPE string .
char = 'ABCBDC'.
str = 'ABCBDC'.
REPLACE ALL OCCURRENCES OF 'B' IN char WITH '-'.
REPLACE ALL OCCURRENCES OF 'B' IN str WITH '-'.
WRITE : char , str.
注:被替换的字符(本例为"B"),不可以为空格
阅读(15691) | 评论(0) | 转发(0) |