SetSession

Description

Associates the specified Session object with the Workspace object.

If you create a Workspace object without first having a Session object, you must call this method before attempting to access any of the queries, charts, or reports in the workspace.

Syntax

VBScript


workspace.SetSession sessionObj 

Perl


$workspace->SetSession(sessionObj); 
Identifier
Description
workspace
The Workspace object obtained from the current session.
sessionObj

A reference to the Session object created previously

(as in, set sessionObj = CreateObject("CLEARQUEST.SESSION")

for Visual Basic).

Return value
None. For Visual Basic, if the method fails it sets the error object's error code to OLEWKSPC_E_CANTCREATESESSION