// Random access to hash data: read-hash <hash> \ key <key> \ value <value> \ [ delete [ <delete> ] ] \ [ status <status> ] // Sequential access to hash data: read-hash <hash> traverse begin read-hash <hash> traverse \ key <key> \ value <value> \ [ delete [ <delete> ] ] \ [ status <status> ] \Copied!
// Create new hash new-hash h // Write to a hash write-hash h key "X0029" value "some data" // Read from a hash read-hash h key "X0029" value res status f delete if-true f equal GG_ERR_EXIST @No data in the hash! else-if @Deleted value is <<p-out res>> end-ifCopied!
// Position at the beginning of the hash read-hash h traverse begin start-loop // Get elements, one by one, until NULL returned as a key read-hash h traverse key k value r status f if-true f equal GG_ERR_EXIST break; end-if pf-out "Key [%s] data [%s]\n", k, r end-loopCopied!