BBjspHashMap::setLong (Deprecated)

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

Description

In BBj 16.0 and higher, this method adds a Long value to the map.

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

Syntax

Return Value

Method

void

setLong(string key, Object val)

Parameters

Variable

Description

key

The key.

val

A Long.

Return Value

None.

Remarks

None.

Example

declare BBjspHashMap map!

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

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

print map!

See Also

BBjspHashMap

BBjspHashMap::getLong()