*&---------------------------------------------------------------------*
*& Report ZDEMO13
*&
*&---------------------------------------------------------------------*
*&
*&
*&---------------------------------------------------------------------*
REPORT zdemo13.
DATA: gv_chara(100) TYPE c,
gv_charb(100) TYPE c.
gv_chara = '1234Abc'.
gv_charb = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' && 'abcdefghijklmnopqrstuvwxyz'
&& '1234567890'.
***判断gv_chara字符串是否为字母+数字组合
IF gv_chara CO gv_charb.
WRITE 'co'.
ELSE.
WRITE 'not co'.
ENDIF.
CO/CN Contains Only/Contains Not Only
CA/NA Contains Any/Contains Not Any
CS/NS Contains String/Contains No String
CP/NP Covers Pattern/No Pattern
阅读(4914) | 评论(0) | 转发(0) |