Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

WaitForIdle and sleep

Please let me know the difference between following two statements -

ActiveDocument.GetApplication.WaitForIdle


ActiveDocument.GetApplication.Sleep 2000

1 Reply
biester
Specialist
Specialist

Well, "Sleep" waits until the specified amount of time has elapsed, "WaitForIdle" waits until idle state has been reached - if that never happens due to whatsoever reason, macro execution waits forever unless you have specified a timeout.

Rgds,
Joachim