BBjSessionInfo::getTerminalName

Description

In BBj 4.0 and higher, this method returns the terminal name from the session described by this  BBjSessionInfo.

Syntax

Return Value

Method

string

getTerminalName()

Parameters

None.

Return Value

Returns the terminal name from the session described by this BBjSessionInfo.

Remarks

This value is only meaningful in TermConsole or IO mode.

Example

rem ' BBjSessionInfo

info$ = stbl("!SESSIONINFO","Session Info Message")

info! = bbjapi().getCurrentSessionInfo()
print info!
print "getUser: ",info!.getUser()
print "getUnresponsiveTime:",info!.getUnresponsiveTime()
print "getIPAddress: ",info!.getIPAddress()
print "getConnectTime: ",info!.getConnectTime()
print "getProgramName: ",info!.getProgramName()
print "getProgramLine:",info!.getProgramLine()
print "getLineListing: ",info!.getLineListing()
print "isBackground: ",info!.isBackground()
print "getSessionID:",info!.getSessionID()
print "getTerminalID: ",info!.getTerminalID()
print "getTerminalName: ",info!.getTerminalName()
print "getMessage: ",info!.getMessage()
   
vector! = bbjapi().getSessionInfos()
size = vector!.size()
print "Scan",size," active session(s)...."
for i = 0 to size - 1
   info! = vector!.get(i)
   if info!.getProgramName() = "foo.bbj" then
      rem bbjapi().killSession(info!,"admin","admin123")
   endif
next i

end

See Also

BBjAPI

BBjAPI::getSessionInfos

BBjSessionInfo

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.



______________________________________________________________________________________

Copyright BASIS International Ltd. BBj®, Visual PRO/5®, PRO/5®, and BBx® are registered trademarks.