qwert Posted March 25, 2016 Posted March 25, 2016 I've been working with RichEdits and have come upon the very useful RESH UDF. But I baffled by one statement in the example's _LoadFile() function: _GUICtrlRichEdit_ReplaceText($hRichEdit, '') Can someone explain this "non-replace"? Here's the context:
AutoBert Posted March 25, 2016 Posted March 25, 2016 You want to load a file so the RichEditcontrol had to be empty. When you want to append use _GuiCtrlRichEdit_AppendText instead.
qwert Posted March 25, 2016 Author Posted March 25, 2016 (edited) Thanks for your response. But just to be clear, the purpose of the statement is to clear all contents of the RichEdit? Yes? Is that documented anywhere? Update: although I haven't seen it documented, I have now seen this elsewhere as a conventional method to clear a richedit: _GUICtrlRichEdit_SetSel($hRichEdit, 0, -1) _GUICtrlRichEdit_ReplaceText($hRichEdit, "") I'll consider this closed. Thanks, again. Edited March 25, 2016 by qwert Update
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now