Application Development and Automation 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: 
Read only

How to clear text in textedit control?

Former Member
0 Likes
1,453

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

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
Read only

Former Member
0 Likes
1,014

use free memory.

this will refresh your input screen.

plz reward points if helps.

regards,

Rahul

Message was edited by:

Rahul Bhasin

Read only

0 Likes
1,014

Hi Rahul,

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

Regards,

Rayden

Read only

0 Likes
1,014

Hi, Rayden.

You can use CLEAR text_area.

Regards,

feng.

Read only

0 Likes
1,014

Hi Feng Zhang,

I try that, but it did not work.

Regards,

Rayden

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,014

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

Read only

0 Likes
1,014

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