Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

how can we limit in text editor control

Former Member
0 Kudos

hi all,

i have made the line limit using

"CONSTANTS: c_line_length TYPE i VALUE 256.".

but how can i make a limit on paragraph length , so that the user cannot enter more than 255 characters.

3 REPLIES 3

Former Member
0 Kudos

Where are you using xour paragraph ?

texte, forms or what else ?

Former Member
0 Kudos

Hi,

After filling the data find the length of entered text and throw message (only 255 characters are considered).

Regards,

Thiru

syed_ibrahim5
Active Participant
0 Kudos

hi rajat,

you can use the flollowing when you are creating the object for the text editor.


    CREATE OBJECT g_editor
      EXPORTING
         parent = g_editor_container
         wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
         wordwrap_to_linebreak_mode = cl_gui_textedit=>true
         max_number_chars = 150 " restricts the nnumber of characters to 150

regards,

syed