Saphirah
Active member
- Local time
- Today, 17:47
- Joined
- Apr 5, 2020
- Messages
- 163
Hello everyone,
I have a rich text field. Now whenever a user copy pasts text from the internet into the text field, the formatting might be off, due to other fonts, text sizes etc...
That is why i added a button to reset the formatting of the text. Using the PlainText function you can convert RichText to a simple text string.
But this will remove line breaks, which is not my intention. How can i reset the formatting to the system default, without removing the line breaks?
Thank you very much!
I have a rich text field. Now whenever a user copy pasts text from the internet into the text field, the formatting might be off, due to other fonts, text sizes etc...
That is why i added a button to reset the formatting of the text. Using the PlainText function you can convert RichText to a simple text string.
Code:
Private Sub ResetFormat_Btn_Click()
Beschreibung_Fld = PlainText(Beschreibung_Fld)
End Sub
But this will remove line breaks, which is not my intention. How can i reset the formatting to the system default, without removing the line breaks?
Thank you very much!