BBjNamespace::getKeys

Description

In BBj 3.0 and higher, this method retrieves the keys of all elements currently contained in a BBjNamespace.

Syntax

Return Value

Method

BBjVector

getKeys()

Parameters

None.

Return Value

Returns a BBjVector containing all keys in the underlying Namespace.

Remarks

None.

Example

bbj! = BBjAPI()
namespace! = bbj!.getNewNamespace("foo")
namespace!.setValue("key1","value1")
namespace!.setValue("key2",1234)
namespace!.setValue("key3",new java.lang.String("a Java String"))
vector! = namespace!.getKeys()
size = vector!.size()
print "namespace element count: " , size
for i = 0 to size-1
    key$ = vector!.getItem(i)
    value! = namespace!.getValue(key$)
    print key$, " : " , value!.toString()
next i

See Also

BBjAPI

BBjNamespace

Object Variables

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