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 to clear text in textedit control?

Former Member
0 Kudos

Hi,

I have a dialog screen that consist of a button and a custom control (textedit). I need to know how to clear the text in the textedit control when the user click on the button. Any code?

Regards,

Rayden

6 REPLIES 6

Former Member
0 Kudos

use free memory.

this will refresh your input screen.

plz reward points if helps.

regards,

Rahul

Message was edited by:

Rahul Bhasin

0 Kudos

Hi Rahul,

How to free memory when i don't even use any memory. Please advise.

Regards,

Rayden

0 Kudos

Hi, Rayden.

You can use CLEAR text_area.

Regards,

feng.

0 Kudos

Hi Feng Zhang,

I try that, but it did not work.

Regards,

Rayden

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Use the method as below, and pass an emtpy table to it.



  call method text_editor->set_text_as_r3table
     exporting
           table              = textlines
     exceptions
           others             = 1.

Regards,

Rich Heilman

0 Kudos

Hi Rich Heilman,

I try with SET_TEXT_AS_R3TABLE and DELETE_TEXT method. Both return me a runtime error as shown below:

=======================================================

Runtime Errors : OBJECTS_OBJREF_NOT_ASSIGNED

Except. : CX_SY_REF_IS_INITIAL

Short text : Access via 'NULL' object reference not possible.

=======================================================

The PBO of the program did initialise the Textedit object. Why the error exist? Please advise. Thanks

Regards,

Rayden