BBjVector::clear

Description

Removes all items from the vector.

Syntax

Return Value

Method

void

clear()

Parameters

None.

Return Value

None.

Remarks

None.

Example

REM Clear items in 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 Clear the items in the BBjVector object
myVector!.clear()

See Also

BBjAPI

BBjWindow

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