External Interfaces/API |
Description of Function pb_listall
The pb_listall
function takes one argument, the Properties
object pb_htable
. The function calls propertyNames
on the pb_htable
object to return to enum
a java.util.Enumeration
object, which supports convenient enumeration of all the keys. In a while
loop, pb_listall
calls hasMoreElements
on enum
, and if it returns true, pb_listall
calls nextElement
on enum
to return the next key. It then calls pb_display
to display the key and entry, which it retrieves by calling get
on pb_htable
with the key.
function pb_listall(pb_htable) enum = pb_htable.propertyNames; while enum.hasMoreElements key = enum.nextElement; pb_display(pb_htable.get(key)); end;
Description of Function pb_change | Description of Function pb_display |