This method gets the session profile name for a specific session. The session profile name is the name of the session that was launched.
ret = ItemName (n)
ret | String, output |
The session profile name. | |
n | Ranges in value from 1 to the maximum number of PASSPORT sessions that are connected. |
Note: It is possible to have multiple sessions open with the same session profile name. However, it is not possible to have multiple sessions with the same HLLAPI short name.
Example
Sub
ZMain()
Dim strText, nRet
Dim strSessionName
strSessionName = ItemName (1)
strText = "Session Profile Name = " &strSessionName
nRet = MsgBox (strText, 0, "Session Name")
End Sub