(Contents)(Previous)(Next)

GetTaskAccessOfUser()

Description: Returns the access of the passed in User to the tasks belonging to this User.
Syntax: object.GetTaskAccessOfUser(user)
Parameters:
object Required, the User object
user Required, the User object
Remarks: This function returns a number which represents the passed in User's access to the tasks belonging to the OfficeTalk user represented by this 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 passed in user to the tasks of the current 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.GetTaskAccessOfUser(user2)


Next