## The `Clear' method

Argument: None
Result: None

Valid for: Edit, RichEdit, Document, SendMail

For the Edit, RichEdit, and Document classes, the `Clear` method deletes the currently selected text (if any) from the object. If there is no text currently selected, it does nothing. This is what normally should happen when Clear is selected from the Edit menu. The `onChange` and `onClick` callbacks (if any) are triggered if text was deleted.

For the SendMail class, the `Clear` method clears all the properties associated with a specific e-mail (subject, body, attachments, and so on). If you are sending a series of e-mails, you should normally call this method in between each one, in order to ensure that you do not accidentally send the wrong information to the next recipient.

Topic: APLX Help : System Classes : Methods : Clear

[ Previous | Next | Contents | Index ]