BBjEnterpriseNamespace::getValue

Description

In BBj 13.0 and higher, this method returns the value for the named BBjEnterpriseNamespace object.

Syntax

Return Value

Method

BBjObject

getValue(string name)

BBjObject

getValue(string name, long timeoutMillis)

Parameters

Variable

Description

name

Specifies the named object for which the value is to be retrieved.

timeoutMillis

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

Return Value

Returns the requested object.

Remarks

If the requested named object is not in the BBjEnterpriseNamespace, then this method generates an !ERROR=63 - Uninitialized Variable.

Example

rem 'host and authentication information

host$="server"
port = 2552
user$="user"
password$="password"
namespace! = bbjapi().getBBjEnterpriseNamespace(host$,port,"test",user$,password$)

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

BBjEnterpriseNamespace

BBjNamespace

Object Variables

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