Hashes are unordered data stores indexed by a string. Normally, a hash is created using Dim:

 Dim h As Hash

It can then be used like this:

 h("key") := "value"
 Print h("key")

The key must always be a string. It is interpreted case-sensitively. Reading keys that have never been written returns EMPTY.

You can iterate through the content of a hash using ForEach:

 ForEach h Do Print Key, "=", Value

See Hash Element Properties for details.

Version Differences: Hashes are supported since PCC2 1.99.15. They are not supported in PCC 1.x.

Functions returning Hash