Movicon Help on Line - Rel. 11.7.1301
Syntax |
GetActiveUserObject() |
Description |
This function allows you to retrieve the active user object for the screen. By using this method you can find out which Web Client user is logged on to the Server. When there are no users logged on, this function will return a Nothing object. The same named 'UserAndGroupCmdTarget' basic interface method cannot be used for the previously described purpose. This method when used for a Web Client returns the last user who logged on to the Server and not the one actually logged on the Web Client. |
Parameter |
Description |
None |
None |
Result |
Object If Function has been executed successfully it will retrieve an object of type UserCmdTarget if otherwise Nothing is returned. |
Example:
Option Explicit
Public Sub Click()
Dim objUser As UserCmdTarget
Set objUser = GetSynopticObject.GetActiveUserObject
If Not objUser Is Nothing Then
MsgBox(objUser.Name & " is Logged In", vbOkOnly, GetProjectTitle)
Set objUser = Nothing
End If
End Sub