Find offset of first/last found substring

DATA: TEXT TYPE STRING VALUE 'RO_LL_OVER BEET_HOVEN',

      MOFF TYPE I VALUE '-1'.

FIND FIRST OCCURRENCE OF '_' IN TEXT IN CHARACTER MODE IGNORING CASE MATCH OFFSET MOFF.

WRITE:/ MOFF.

CLEAR MOFF.

MOFF = '-1'.

FIND ALL OCCURRENCES OF '_' IN TEXT IN CHARACTER MODE IGNORING CASE MATCH OFFSET MOFF.

WRITE:/ MOFF.

posted @ 2014-03-31 16:49  _QWERT  阅读(322)  评论(0编辑  收藏  举报