Making a function "sleep" - InfoPath Dev
in

InfoPath Dev

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: Previous Next
  • 03-09-2006 04:06 AM

    • pleky
    • Not Ranked
    • Joined on 03-08-2006
    • Posts 5

    Making a function "sleep"

    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

    Re: Making a function "sleep"

    You could try Thread.Sleep in managed code.

    What are you trying to achieve?
  • 03-11-2006 03:53 AM In reply to

    • pleky
    • Not Ranked
    • Joined on 03-08-2006
    • Posts 5

    Re: Making a function "sleep"

    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

    Re: Making a function "sleep"

    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 MVP
    Qdabra® 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.