BBjspHashMap::setInt (Deprecated)

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

Description

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

This method will attempt to coerce the given object to a Integer, allowing you to store an integer value as an Integer.

Syntax

Return Value

Method

void

setInt(string key, Object val)

Parameters

Variable

Description

key

The Key.

val

An Integer.

Return Value

None.

Remarks

None.

Example

declare BBjspHashMap map!

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

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

print map!

See Also

BBjspHashMap

BBjspHashMap::getInt()