BBjspHashMap::setShort (Deprecated)

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

Description

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

This method will attempt to coerce the given object to a Short, allowing you to store an floating-point or string value as a Short.

Syntax

Return Value

Method

void

setShort(string key, Object val)

Parameters

Variable

Description

key

The key.

val

A Short object.

Return Value

None.

Remarks

None.

Example

declare BBjspHashMap map!

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

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

print map!

See Also

BBjspHashMap

BBjspHashMap::getShort()