BBjConfig::getCommandLineObject

Description

In BBj 4.0 and higher, this method returns a BBjCommandLineObject.

Syntax

Return Value

Method

BBjCommandLineObject

getCommandLineObject()

BBjCommandLineObject

getCommandLineObject(string command)

Parameters

Variable

Description

command

Specifies the command line argument string. Note that the string does not use "bbj."

Return Value

Returns a BBjCommandLineObject as a parameter when calling BBjAPI::newSynchBBjSession.

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.