Mbee

[Solved]_GUICtrlRichEdit_SetText() returns @error = 700 - help?

9 posts in this topic

#1 ·  Posted (edited)

I've made successful calls to _GUICtrlRichEdit_SetText() earlier in this app, but in another function it fails and sets @error to 700, which could mean "internal error", but that is extremely unhelpful! :'(  (I say it could mean that, but that's not listed in the documentation as a possible return code -- although it is for a call to _GUICtrlRichEdit_GetText).

The call to _GUICtrlRichEdit_Create() worked fine and returned no error, so how can I figure out what's going on?

Thanks for any assistance!

Edited by Mbee

Share this post


Link to post
Share on other sites



#2 ·  Posted

53 minutes ago, Mbee said:

but that is extremely unhelpful! :'( 

As is asking people to troubleshoot an issue without posting any of the code you're using :'(


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#3 ·  Posted

Do you want all 10,000+ lines?  If so, I will not post all that.  If not, then here's my code:

_GUICtrlRichEdit_SetText( $Lf_ThisRichTextCtl, $Lf_ThisMsg )

How hard was that to figure out? :'(

 

Share this post


Link to post
Share on other sites

#5 ·  Posted

@Mbee if you want people to assist you then yes, code is necessary - specifically code that will run, not a one-liner showing variables that mean nothing to anyone but you. You're basically asking us to first guess at what you're doing and then troubleshoot for you. If the code is long, posting a reproducer that shows the problem will invite others to assist.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

#6 ·  Posted

Well, since I won't post 10,000+ lines of code, kindly forget that I asked you for help...

Honestly, though, there's absolutely no reason anyone needs to see the code for this direct, unambiguous, issue which is utterly unrelated to my code.  When an official function returns an undocumented and inexplicable @error value, that's either totally unrelated to my code, or else I'd need to post all 10,000+ lines to see if some obscure, mysterious, bug is cramming the value of 700 into @error under impossible circumstances (there are no calls to SetError() anywhere in my code).

It seems particularly curious to me to be presented with this demand when an official function returns an undocumented and/or informationless return code. Why aren't you asking to see the code for the function in question? Surely that would be vastly more useful and relevant.

Share this post


Link to post
Share on other sites

#7 ·  Posted

I do sense an attitude I don't like so have no appetite to help you...   so am out of this thread unless things needs to be locked.

Jos

1 person likes this

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#8 ·  Posted

I have figured it out. It doesn't like strings that start with @CRLF.

 

Share this post


Link to post
Share on other sites

#9 ·  Posted

Same here. Your attitude is not going to win you any friends on this forum, and needs to be checked if you expect help in the future. 

1 person likes this

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
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