(Contents)(Previous)(Next)

Logon()

Description: Logs the user onto OfficeTalk using the passed in name and password.
Syntax: object.Logon([loginName, [loginPassword]])
Parameters:
object Required, the Session object
loginName The user's login name. To prompt the user to enter a login name, omit loginName and ensure the user interface is activated (the default) via a call to SetAllowUI().
loginPassword The user's login password. To prompt the user to enter a login password, omit loginPassword and ensure the user interface is activated (the default) via a call to SetAllowUI().
Returns: Returns a User object.
Example:
Dim session As Object

Dim user As Object

Set session = CreateObject("OfficeTalk.Session")

Set user = session.Logon("fred", "password")


Next