BBjspHashMap::getObject (Deprecated)

The BBJSP system is deprecated. For new development, use BBxServlet.

Description

In BBj 16.0 and higher, this method returns the object bound to the key. No coersion takes place.

Syntax

Return Value

Method

Object

getObject(string key)

Parameters

Variable

Description

key

The name of the object to get.

Return Value

Returns the object bound to the key.

Remarks

None.

Example

declare BBjspHashMap map!

map! = BBjAPI().makeBBJSP().makeBBjspHashMap()

map!.setObject("V1",BBjAPI().TRUE)
map!.setObject("V2",0)
map!.setObject("V3",1.23)
map!.setObject("V4","9.1")

vect! = map!.getKeys()
if vect!.size()
    for i = 0 to vect!.size()-1
        n$ = vect!.get(i)
        ? n$ + " = " + str(map!.getObject(n$))
    next i
endif
print map!

See Also

BBjspHashMap::setObject()