BBjVector::size

Description

Returns the number of items in vector.

Syntax

Return Value

Method

int

size()

Parameters

None.

Return Value

Returns the number of items in the vector.

Remarks

None.

Example

REM Get the size of 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$)

REM Get the number of items in the vector, this returns 4
VECTOR_SIZE = NUM(myVector!.size())

See Also

BBjAPI

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