Jump to content

Documentation of ObjEvent


Indi2Go
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Developers

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

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...