Product Site

5.3.17. StringTable Class

A StringTable is a MapCollection using unique character string indexes. The items of a StringTable can be any valid Rexx object.

See also Directory Class, a MapCollection similar to StringTable, but with additional methods setMethod and unsetMethod.
Table 5.27. StringTable Class

In addition to the standard put, []=, at, and [] methods defined for Collections, StringTable provides access to items using methods. For example:
sTable = .StringTable~new
sTable~name = "Mike"   -- same as sTable~put("Mike", "NAME")
say sTable~name        -- same as say sTable["NAME"]

Note that StringTable does not provide methods setMethod and unsetMethod as the Directory class does.