‎2008 Dec 11 2:04 PM
Hi everybody,
I use cl_gui_textedit to create text-editor limited to 2000 characters, I save that the users write in the editor in a internal table with method get_text_as_stream. My internal table has lines of 250 characters, but that save is 75 characters. There is a way to increase the dimension of the lines from 75 to 250..?
‎2008 Dec 11 3:45 PM
Hi Stefano,
Pls check the below simple program....
Here i am restricting it to 2000 chars and and entering 2000 chars..
I am getting 8 lines( 255 * 8 = 2040 ) in the table gt_table.
PARAMETER dummy.
DATA : go_texteditor TYPE REF TO cl_gui_textedit,
gt_table TYPE STANDARD TABLE OF char255.
AT SELECTION-SCREEN OUTPUT.
CREATE OBJECT go_texteditor
EXPORTING
max_number_chars = 2000
parent = cl_gui_container=>default_screen.
START-OF-SELECTION.
go_texteditor->get_text_as_stream( IMPORTING text = gt_table ).
BREAK-POINT. " check gt_tableCheers,
Jose.
‎2008 Dec 11 2:17 PM
‎2008 Dec 11 3:45 PM
Hi Stefano,
Pls check the below simple program....
Here i am restricting it to 2000 chars and and entering 2000 chars..
I am getting 8 lines( 255 * 8 = 2040 ) in the table gt_table.
PARAMETER dummy.
DATA : go_texteditor TYPE REF TO cl_gui_textedit,
gt_table TYPE STANDARD TABLE OF char255.
AT SELECTION-SCREEN OUTPUT.
CREATE OBJECT go_texteditor
EXPORTING
max_number_chars = 2000
parent = cl_gui_container=>default_screen.
START-OF-SELECTION.
go_texteditor->get_text_as_stream( IMPORTING text = gt_table ).
BREAK-POINT. " check gt_tableCheers,
Jose.