<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Module to wait x seconds in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Module-to-wait-x-seconds/m-p/1332229#M411441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have some code which I would like to include into a macro my Qlikview doc is running, however I continue to get errors which I cant reconcile using google. &lt;BR /&gt;Below is a snapshot of my code which is causing trouble and the error it is throwing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub&amp;nbsp; Wait(Byval seconds as integer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep (seconds*100)&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Expected ')' &lt;BR /&gt;It highlights the "&lt;SPAN style="font-size: 13.3333px;"&gt;as integer)&lt;/SPAN&gt;" part of this sub. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason this is throwing the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try &lt;/P&gt;&lt;P&gt;sub&amp;nbsp; Wait(seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep (seconds*100)&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nothing happens when I test Wait(5). any ideas on how to fix this? &lt;/P&gt;&lt;P&gt;Ideally I would like to have a sub that makes the program wait 5 seconds when I call Wait(5). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2017 15:51:51 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-05-24T15:51:51Z</dc:date>
    <item>
      <title>Module to wait x seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Module-to-wait-x-seconds/m-p/1332229#M411441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have some code which I would like to include into a macro my Qlikview doc is running, however I continue to get errors which I cant reconcile using google. &lt;BR /&gt;Below is a snapshot of my code which is causing trouble and the error it is throwing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub&amp;nbsp; Wait(Byval seconds as integer)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep (seconds*100)&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Expected ')' &lt;BR /&gt;It highlights the "&lt;SPAN style="font-size: 13.3333px;"&gt;as integer)&lt;/SPAN&gt;" part of this sub. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any reason this is throwing the error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try &lt;/P&gt;&lt;P&gt;sub&amp;nbsp; Wait(seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.Threading.Thread.Sleep (seconds*100)&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nothing happens when I test Wait(5). any ideas on how to fix this? &lt;/P&gt;&lt;P&gt;Ideally I would like to have a sub that makes the program wait 5 seconds when I call Wait(5). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 15:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Module-to-wait-x-seconds/m-p/1332229#M411441</guid>
      <dc:creator />
      <dc:date>2017-05-24T15:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Module to wait x seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Module-to-wait-x-seconds/m-p/1332230#M411442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also tried: &lt;/P&gt;&lt;P&gt;sub&amp;nbsp; Wait(seconds)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.Sleep (seconds * 1000)&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and nothing happens. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also &lt;/P&gt;&lt;P&gt;sub&amp;nbsp; Wait&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.WaitForIdle&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActiveDocument.GetApplication.Sleep 5000&lt;/P&gt;&lt;P&gt;End sub&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and nothing happens. &lt;BR /&gt;Is there a library I have import?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2017 16:32:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Module-to-wait-x-seconds/m-p/1332230#M411442</guid>
      <dc:creator />
      <dc:date>2017-05-24T16:32:02Z</dc:date>
    </item>
  </channel>
</rss>

