BBjNamespace::removeValue

Description

In BBj 6.0 and higher, this method removes an object from this BBjNamespace.

Syntax

Return Value

Method

void

removeValue(string name)

void

removeValue(string name, long timeoutMillis)

Parameters

Variable

Description

name

Specifies the name of the named object.

timeoutMillis

Time in milliseconds to wait if requested Object is currently locked.

Return Value

None.

Remarks

removeValue(name) is equivalent to removeValue(name, 20). If the requested Object is currently locked by another BBjNamespace then this version of removeValue() will wait up to timeoutMillis milliseconds for the lock to release. If the lock is still in effect after that time, then an error LOCKED will be generated.

Example

rem ' BBjNamespace::removeValue Example

rem 'get Namespace
namespace! = BBjAPI().getNamespace("test","test",1)

rem 'set Values of the namespace
namespace!.setValue("aKey","100")
namespace!.setValue("bKey","200")

rem 'get Keys and print size
keys! = namespace!.getKeys()

rem 'Remove the values of aKey
namespace!.removeValue("aKey")
print "namespace! size is " + STR(keys!.size())
print "bKey is " + namespace!.getValue("bKey")

See Also

BBjAPI

BBjNamespace

Object Variables

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.