Chinaunix首页 | 论坛 | 博客
  • 博客访问: 467481
  • 博文数量: 199
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 1902
  • 用 户 组: 普通用户
  • 注册时间: 2020-05-14 13:25
个人简介

代码5S

文章分类

全部博文(199)

文章存档

2021年(5)

2020年(194)

我的朋友

分类: 其他平台

2020-06-05 12:31:11

report  demo_show_text.

class demo definition.
  public section.
    class-methods main.
endclass.

class demo implementation.
  method main.
    datatext       type ref to cl_demo_text,
          text_table type cl_demo_text=>t_text,
          text_line  type cl_demo_text=>t_line.

    text cl_demo_text=>get_handle).

    text_line 'First line of text'.
    text->add_linetext_line ).
    text->add_line' ' ).
    do 10 times.
      clear text_line.
      text_line(3sy-index.
      text_line  |Table line { text_line }|.
      append text_line to text_table.
    enddo.
    text->add_tabletext_table ).
    text->add_line' ' ).
    text_line 'Last line of text'.
    text->add_linetext_line ).

    text->display).

    text->delete).
    text->add_line'New text' ).
    text->display).

  endmethod.
endclass.

start-of-selection.
  demo=>main).
阅读(808) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~