BBjObjectTable::put

Description

Places a key/value pair into the table.

Syntax

Return Value

Method

void

put(Object key!, Object value!)

Parameters

Variable

Description

key!

Specifies a key.

value!

Specifies a value.

Return Value

None.

Remarks

None.

Example

rem 'Put a key/value pair into the BBjObjectTable

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

rem 'Obtain the instance of the BBjObjectTable object
let myObjectTable! = myAPI!.getObjectTable()

rem 'Create a key/value pair
STATE_KEY$="NM"
STATE_VALUE$="New Mexico"

rem 'Add the key/value pair into the BBjObjectTable
myObjectTable!.put(STATE_KEY$, STATE_VALUE$)

See Also

BBjAPI

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