BBjConfig::getCurrentCommandLineObject

Description

In BBj 4.0 and higher, this method returns the current session's BBjCommandLineObject.

Syntax

Return Value

Method

BBjCommandLineObject

getCurrentCommandLineObject()

Parameters

None.

Return Value

Returns the current session's BBjCommandLineObject.

Remarks

None.

Example

rem 'getting the BBjCommandLineObject

rem 'get BBjConfig proxy
myCFG! = BBjAPI().getConfig()

rem 'get Default CommandLineObject
myCMD! = myCFG!.getCommandLineObject()

rem 'get CommandLineObject for a specific string
myCMD! = myCFG!.getCommandLineObject("-TC -RHlocalhost -RP2003 -q prog.bbj")

rem 'get the CommandLine Object used to start this session
myCMD! = myCFG!.getCurrentCommandLineObject()
PRINT myCMD!

See Also

BBjAPI

BBjConfig

BBjAPI::newBBjSession

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