ClearStatus Method for LCSession

This method resets or clears the LCSession status after an error.

Defined In

LCSession

Syntax

thisSession.ClearStatus()

Example

Option Public
Uselsx "*lsxlc" 
Sub Initialize
  Dim session As New LCSession
  REM Ignore errors
  On Error Resume Next
  REM purposely generate a Lotus Connector error
  session.ListConnector (23)
  Print "The current status code is #" & Cstr (session.Status)
  session.ClearStatus
  Print "The new status code is #" & Cstr (session.Status)
End Sub

Example Output

The current status code is #12292.
The new status code is #0.