Sleep Method for LCSession

This method forces a script execution to sleep for the specified length of time.

Note: LotusScript® also has a Sleep statement, but it is only precise to the nearest second. Like the Sleep statement, the Sleep method for LCSession pauses by repeatedly giving up its processor time section until the specified interval has passed. This allows other processes that need to use the system to take advantage of the idle time. It also means that the actual interval may be significantly longer than specified.

Defined In

LCSession

Syntax

Call thisSession .Sleep (milliSeconds)

Parameters

Value

Description

milliSeconds

Long. Number of milliseconds to sleep.

Example

Option Public
Uselsx "*lsxlc" 
Sub Initialize
  Dim session As New LCSession
  Print "The Time is " Cstr(Now).
  session.Sleep (5000)
  Print "The Time is " Cstr(Now).
End Sub

Example Output

The Time is 9/8/01 5:23:32 PM.
The Time is 9/8/01 5:23:37 PM.