Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Does Sleep exist in Script Editor ? 2

Status
Not open for further replies.

Recce

Programmer
Aug 28, 2002
425
ZA
Hi,

I can't seem to use the funtion Sleep in Cognos Script Editor. Does it exist or is there a similiar funtion ?
:)
 
Recce,

You can use a simple delay loop (for x = 1 to whatever), use the TIMER function, or use the Windows API to call the true sleep function itself. Do a keyword search here for more. It's been covered before a couple of times.

Regards,

Dave Griffin


The Decision Support Group
Reporting Consulting with Cognos BI Tools
"Magic with Data"
[pc2]
Want good answers? Read FAQ401-2487 first!
 
Put this before your sub declaration ...

Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

... then you can call the sleep function from within the macro. For example

Sleep 1000

This will 'sleep' for 1 second.

Enjoy your rest. :)
 
Hi Flex and Dave,

yes Dave, sorry I didn't do a keyword search but, Flex I used your suggestion and it works 100%

thanks guys
:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top