BBjspHashMap::add (Deprecated)

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

Description

In BBj 16.0 and higher, this method will store an object in the BBjspHashMap against the given key value.

Syntax

Return Value

Method

void

add(string key, Object val)

Parameters

Variable

Description

key

the key

val

the object

Return Value

None.

Remarks

None.

Example

declare BBjspHashMap map!

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

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

print map!

See Also

BBjspHashMap