BBjApplication::getTerminal

Description

In BBj 12.0 and higher, this method returns the application's terminal alias.

Syntax

Return Value

Method

string

getTerminal()

Parameters

None.

Return Values

Returns the terminal alias (e.g. T2).

Remarks

The specified terminal type must be configured as a MINI console (e.g.: ALIAS T0 MINI).

Example

rem ' BBjApplication::getTerminal

admin! = bbjapi().getAdmin("admin","admin123")
appServer! = admin!.getWebAppServer()
vector! = appServer!.getAllAppNames()
if (vector!.size()) then
    for i = 0 to vector!.size() - 1
        appName$ = vector!.get(i)
        app! = appServer!.getApplication(appName$)
        print appName$," getTerminal: ",
        print app!.getTerminal()
    next i
endif

See Also

BBjAPI

BBjAppConfig

BBjAppServer

BBjApplication

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