Making a function "sleep" - InfoPath Dev Sign in | Join | Help in Code InfoPath (Entire Site) InfoPath Dev InfoPath Dev is dedicated to bringing you the information and tools you need to be successful in your Microsoft Office InfoPath development projects. Home Blogs Forums Photos Downloads InfoPath Dev » InfoPath » Code » Making a function "sleep" Making a function "sleep" Last post 03-12-2006 02:04 PM by Matt Faus. 3 replies. Page 1 of 1 (4 items) Sort Posts: Oldest to newest Newest to oldest Previous Next 03-09-2006 04:06 AM pleky Joined on 03-08-2006 Posts 5 Making a function "sleep" Reply Contact Hello,I would like to make a function "sleep" to let an other process doing its job. WScript.Sleep looks nice, but it is not possible to use within Infopath.Is there an other solution ?Regards, 03-10-2006 02:12 PM In reply to AndersR Joined on 10-20-2005 Denmark Posts 138 Re: Making a function "sleep" Mark as Not AnswerMark as Answer... Reply Contact You could try Thread.Sleep in managed code.What are you trying to achieve? 03-11-2006 03:53 AM In reply to pleky Joined on 03-08-2006 Posts 5 Re: Making a function "sleep" Mark as Not AnswerMark as Answer... Reply Contact Hello,I need to "pause" my script when I generate a PDF, so let say that I need 10 to 20 seconds before sending an email with my generated PDF.And I'm just using jscript... 03-12-2006 02:04 PM In reply to Matt Faus Joined on 08-18-2006 Dallas, Texas Posts 1,558 Re: Making a function "sleep" Mark as Not AnswerMark as Answer... Reply Contact You can use the setTimeout() javascript method within a custom task pane. I don't know if you'll be able to get the setTimeout() method to work from within your form code, but I know I have done it in a task pane before.Hope this helps! Matt Faus / Microsoft InfoPath MVPQdabra® Software / Streamline data gathering to turn process into knowledge Page 1 of 1 (4 items) Copyright © 2003-2019 Qdabra Software. All rights reserved.View our Terms of Use.