Description: | Returns the data type and ID of the currently viewed item. |
Syntax: | object.GetViewedItem data type, ID |
Parameters: | |
object | Required, the Application object |
ID | A long integer which will be assigned the ID of the item. |
data type | A string which will be assigned with a string representing the OfficeTalk data type. This may be one of the following values: "Company", "Contact", "Conversation", "Document", "Task Folder", "Meeting Folder", "Project Folder", "Planner Folder", "Mail Folder", "Task", "Project Task", "Appointment", "Resource Booking", "Meeting", "Meeting Member", "Planner", "Project", "Received Mail", "Sent Mail", "Group", "User", "Resource". |
Returns: | True if the function successfully assigned the data type and ID of the currently viewed item, False otherwise. |
Example: |
Set Appl = GetObject(, "Officetalk.application")
Dim sDataType As String
Dim lID As Long
Call Appl.GetViewedItem(sDataType, lID)
MsgBox sDataType
MsgBox lID