Jump to content

Seeking clarification on RESH _LoadFile example


qwert
 Share

Recommended Posts

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:

LoadFile.jpg.aa2aa841c9f80c9dbf5a864a024

 

 

Link to comment
Share on other sites

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 by qwert
Update
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...