BBjspHashMap::setDouble (Deprecated)

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

Description

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

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

Syntax

Return Value

Method

void

setDouble(string key, Object val)

Parameters

Variable

Description

key

The key.

val

A Double.

Return Value

None.

Remarks

None.

Example

declare BBjspHashMap map!

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

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

print map!

See Also

BBjspHashMap

BBjspHashMap::getDouble()