Sign in to follow this  
Followers 0
Indi2Go

Documentation of ObjEvent

3 posts in this topic

Hello,

I have a question regarding a sentence in the documentation of ObjEvent function.

 

ObjEvent ( "AutoIt.Error" [, "function"] )

....

If the second parameter is omitted, it will return the name of the current Error handler function or function, depending what was used when registering.

 

Is there a typo? Or what is meant by " ... or function"?

/Indi2Go

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Have you scrolled down in the helpfile and looked at the example?

ps, this is a general AutoIt3 question, not AutoItX, so moved.

Jos

Edited by Jos

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

I have looked at the example, but in this example the Error handler is only set.

There is no example for asking the Error handler function, which happens when the second parameter is missing.

Unfortunatly in the helpfile the paramter for using ObjEvent to register a Error handler isn't described.

In the helpfile for 3.3.8.1 the syntax description looks like following:

ObjEvent ( "AutoIt.Error" [, "function name"] )

in 3.3.10.0 now it looks like following:

ObjEvent ( "AutoIt.Error" [, "function"] )

So I quess I could use a function name or ??? as paramter for register a Error handler.

If I ask for for the Error handler ( ObjEvent("AutoIt.Error")), I get the function name or ??? back.

But was is ???

I'm helping to translate the helpfile to german. So I'd like the understand the behavior of the function.

Thanks,

   Indi2Go

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
Sign in to follow this  
Followers 0