BBjObjectTable::get

Description

Retrieves a value from the table given a key.

Syntax

Return Value

Method

Object

get(Object key!)

Parameters

Variable

Description

key!

Specifies the key.

Return Value

Returns the Object retrieved.

Remarks

None.

Example

rem 'Get a value from 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$)

rem 'Get the state value fromt BBjObjectTable given a key
STATE_VALUE$ = myObjectTable!.get(STATE_KEY$)

See Also

BBjAPI

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