Page 1 of 1

Texteditor.Clear or Erase?

Posted: Thu Feb 20, 2025 9:21 pm
by lazi
Just wondering what the difference is between the two functions Texteditor.Clear and Texteditor.Erase?
Neither of these are in the class documentation, texteditor.doc.

Maybe they just do a Texteditor.Contents with empty string?

Re: Texteditor.Clear or Erase?

Posted: Tue Feb 25, 2025 10:40 pm
by airsoftsoftwair
Texteditor.Clear maps to the MUIM_TextEditor_Clear method whereas Texteditor.Erase maps to MUIM_TextEditor_ARexxCmd, passing "ERASE" as the Rexx command. Not really sure why I added both and if there is a difference between the two... maybe check the source on Github ;)