Jump to content

AdlibEnable/AdlibDisable question


Recommended Posts

I am wondering, how the internals of adlibenable/adlibdisable work.

Is it an fire and forget mechanism or does adlib wait for the called function to return?

let me show what i mean:

AdlibEnable("CheckMessages", 300000)

function CheckMessages()

bla bla .... do a mailcheck routine

EndFunc

Every 5 mins the function will be triggered by Adlib.

question: if the function is triggered will adlib wait for the return before starting the 5 mins timer again? Or will Adlib fire the function (and forget) and start the timer right after the call??

Link to comment
Share on other sites

From the help file:

"The adlib function should be kept simple as it is executed often and during this time the main script is paused"

The rest of the program will wait until it is finished until it continues, and the time will restart at that time.

Infinity is a floorless room without walls or ceiling.Anyone who cannot cope with mathematics is not fully human. At best he is a tolerable subhuman who has learned to wear shoes, bathe, and not make messes in the house.

Link to comment
Share on other sites

From the help file:

"The adlib function should be kept simple as it is executed often and during this time the main script is paused"

The rest of the program will wait until it is finished until it continues, and the time will restart at that time.

well ... uhm...doh..shame shame

I stoppped reading that cause i thought it was the explanation of catching unforseen errors.....silly me

Thanx anywayz

Creator

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...