BBjVector::addItem

Description

Adds an item to the end of the BBjVector.

Syntax

Return Value

Method

void

addItem(Object item!)

Parameters

Variable

Description

item!

Can be any allowed type or object.

Return Value

None.

Remarks

The capacity of the vector is increased if its size becomes greater than its capacity.

Example

rem 'Add items into a BBjVector object

rem 'Obtain the instance of the BBjAPI object
let myAPI! = BBjAPI()

rem 'Create an instance of the BBjVector object
let myVector! = myAPI!.makeVector()

rem 'Create values to add into the BBjVector
A! = new java.lang.Integer(1)
A = 2
B! = new java.lang.String("Item 3")
B$ = "Item 4"

rem 'Add the above values into the BBjVector object
myVector!.addItem(A!)
myVector!.addItem(A)
myVector!.addItem(B!)
myVector!.addItem(B$)

See Also

BBjAPI

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