REPORT  demo_show_text.

CLASS demo DEFINITION.
PUBLIC SECTION.
CLASS-METHODS main.
ENDCLASS. CLASS demo IMPLEMENTATION.
METHOD main.
DATA: text 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_line( text_line ).
text->add_line( ' ' ).
DO 10 TIMES.
CLEAR text_line.
text_line(3) = sy-index.
text_line = |Table line { text_line }|.
APPEND text_line TO text_table.
ENDDO.
text->add_table( text_table ).
text->add_line( ' ' ).
text_line = 'Last line of text'.
text->add_line( text_line ). text->display( ). text->delete( ).
text->add_line( 'New text' ).
text->display( ). ENDMETHOD.
ENDCLASS. START-OF-SELECTION.
demo=>main( ).

Description

The program uses the methods of the class CL_DEMO_TEXT, which was designed for this purpose. The class encapsulates the usage of a Textedit Control in a dialog window.

Wrapper like this can replace the usage of the statement WRITE for simple text outputs.

最新文章

  1. Android 6.0 运行时权限处理完全解析
  2. 剑指Offer面试题:4.从尾到头打印链表
  3. android第一行代码-6.自定义控件的实现
  4. S2SH CRUD 整合
  5. ab基本用法
  6. 小明系列问题——小明序列(Lis 相距大于d的单调上升子序列)
  7. Linux内核启动代码分析二之开发板相关驱动程序加载分析
  8. SQL Server-聚焦ROW_NUMBER VS TOP N性能
  9. 强化学习(三)用动态规划(DP)求解
  10. EXPLAIN 命令详解
  11. 学习笔记TF066:TensorFlow移动端应用,iOS、Android系统实践
  12. Keras bug in model.predict
  13. Mysql Group by 使用解析
  14. Spring_AOP动态代理详解(转)
  15. Jenkins忘记用户名密码
  16. angular(二)
  17. Android如何定制一个下拉刷新,上滑加载更多的容器
  18. Windows利用命令行快速清除以及建立密码
  19. The return types for the following stored procedures could not be detected
  20. A1055 The World's Richest(25 分)

热门文章

  1. linux3种安装软件、yum仓库、防火墙、乱码
  2. [翻译] 使用 TensorFlow 进行分布式训练
  3. SpringMVC踩坑3——前后端传值问题
  4. vue3 操作修改数据
  5. Codeforces Round #754 (Div. 2), problem: (A) A.M. Deviation泪目 万万没想到狂wa是因为这
  6. 【大学物理实验】01 单摆测重力加速度 的 g 计算代码
  7. tomcat的搭建和介绍
  8. jquery 动态 给select赋值
  9. ChCore Lab4 多核处理 实验笔记
  10. 巧用 Docker 快速部署 GPU 环境