BBjspHashMap::setObject

Description

In BBj 16.0 and higher, this method adds an Object value to the map.

Syntax

Return Value

Method

void

setObject(string key, Object val)

Parameters

Variable

Description

key

the key value

val

the object

Return Value

None.

Remarks

None.

Example

declare BBjspHashMap map!

map! = new BBjspHashMap()

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

print map!

See Also

BBjspHashMap

BBjspHashMap::getObject()