‎2008 Jul 11 10:46 AM
Dear All,
I'm using cl_gui_textedit that the user can add
some text.
Now we need to restrict it max 5 lines and max 40 per line
so a max of 200 char.
I use at the moment
CREATE OBJECT g_editor
EXPORTING
parent = g_editor_container
wordwrap_mode =
cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_position = 40
MAX_NUMBER_CHARS = 200
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.but now if the user dont fill every line until 40 he can write
much more than 5 lines.
I know I can finaly ask with
CALL METHOD g_editor->get_line_countthe count of lines but if possible I want to restrict it
before he press save button.
I tried also to fill the 5 lines with space but does not work
any idea ?
Please help... thanks
Is this possible ? Or can I fill
‎2008 Jul 11 11:01 AM
Hi
Set it in the simple data type length or else try it in length property of inputfield.
With Regards
Nikunj Shah
‎2008 Jul 11 11:24 AM
Sorry I do not understand what I should do.
Here how my internal table is build.
DATA: G_MYTABLE(LINE_LENGTH) TYPE C OCCURS 0,
WA_MYTABLE(LINE_LENGTH),
DO 5 TIMES.
WA_MYTABLE(LINE_LENGTH) = SPACE.
APPEND WA_MYTABLE TO G_MYTABLE.
ENDDO.please let me know what I should do