(Contents)(Previous)(Next)

GetTaskAccessToUser()

Description: Returns the access of this User to the tasks belonging to the passed in User
Syntax: object.GetTaskAccessToUser(user)
Parameters:
object Required, the User object
user Required, the User object
Remarks: This function returns a number which represents this User's access to the tasks belonging to the OfficeTalk user represented by the passed in User object. The access is represented by an integer value as follows:
Value Access Level
0 No Access
1 Visible Access
2 Read Only Access
3 Read/Create Access
4 Read/Create/Edit Access
5 Read/Create/Edit/Delete Access
Returns: Returns an integer representing the access of the current user to the tasks of the passed in user.
Example:
Dim session As Object

Dim user1 As Object

Dim user2 As Object

Dim iAccess As Integer

Set session = CreateObject("OfficeTalk.Session")

Call session.Logon(login name, password)

Set user1 = session.FindUserByLoginName("fred")

Set user2 = session.FindUserByLoginName("john")

iAccess = user1.GetTaskAccessToUser(user2)


Next