BBjCommandLineObject::setProgramArgsVector

Description

In BBj 4.0 and higher, this method sets the BBj program arguments specified by the BBjCommandLineObject.

Syntax

Return Value

Method

void

setProgramArgsVector(BBjVector args)

Parameters

Variable

Description

args

The arguments for the BBj program, specified as a BBjVector of strings.

Return Value

None.

Remarks

In a traditional BBj SCALL, this is specified as –<arglist>. Values set here are subject to the same rules as values passed directly from the command line.

Example

config! = bbjapi().getConfig()
cmd! = config!.getCurrentCommandLineObject()
vector! = bbjapi().makeVector()
vector!.add("arg1")
vector!.add("arg2")
vector!.add("arg3")
cmd!.setProgramArgsVector(vector!)
print cmd!.getProgramArgsVector()

See Also

BBjAPI

BBjConfig

BBjAPI::newBBjSession

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