Description: | Returns the access of the current user to this User's tasks. |
Syntax: | object.GetTaskAccess() |
Parameters: | |
object | Required, the User object |
Remarks: | This function returns a number which represents the currently logged in user's access to the tasks belonging to the OfficeTalk user represented by this 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 the appropriate Integer |
Example: |
Dim user As Object
Dim iAccess As Integer
Set session = CreateObject("OfficeTalk.Session")
Call session.Logon(login name, password)
Set user = session.FindUserByLoginName("fred")
iAccess = user.GetTaskAccess()