BBjCommandLineObject

In BBj 4.0 and higher, the BBjCommandLineObject provides programmatic access to the command line.

Creation

BBjAPIBBjConfig > BBjCommandLineObject

The BBjCommandLineObject is created through the following BBjConfig object methods:

Return Value

Method

BBjCommandLineObject

getCommandLineObject()

BBjCommandLineObject

getCommandLineObject(string)

BBjCommandLineObject

getCurrentCommandLineObject()

 

Methods of BBjCommandLineObject

Return Value

Method

string

getApplicationName()

string

getApplicationUserName()

string

getChildFrameMode()

string

getClasspathName()

string

getConfigFile()

string

getInterpreterUser()

string

getOriginalClasspathName()

string

getProgramArgs()

BBjVector

getProgramArgsVector()

string

getProgramName()

string

getTerminal()

string

getWorkingDirectory()

boolean

isLoadOnly()

boolean

isQuiet()

boolean

isWinConsole()

void

setApplicationName(string)

void

setApplicationUserName(string)

void

setChildFrameMode()

void

setClasspathName()

void

setConfigFile(string name)

void

setInterpreterUser(string)

void

setLoadOnly(boolean)

void

setProgramArgs(string)

void

setProgramArgsVector(BBjVectorargs)

void

setProgramName(string)

void

setQuiet(boolean)

void

setTerminal(string)

void

setWinConsole(boolean)

void

setWorkingDirectory(string)

 

Remarks

None.

Constants

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 -q prog.bbj")

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

PRINT myCMD!

See Also

BBjAPI

BBjAPI::newBBjSession

BBjAPI::newSynchBBjSession

BBj Object Variables

BBj Object Assignment

BBj Object Error Handling

BBj Object Operators

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