// Random access to array data: read-array <array> \ key <key> \ value <value> \ [ delete [ <delete> ] ] \ [ status <status> ] // Sequential access to array data: read-array <array> traverse begin read-array <array> traverse \ key <key> \ value <value> \ [ delete [ <delete> ] ] \ [ status <status> ] \Copied!
// Create new array new-array h // Write to array write-array h key "X0029" value "some data" // Read from array read-array h key "X0029" value res status f delete if-true f equal GG_ERR_EXIST @No data in array! else-if @Deleted value is <<p-out res>> end-ifCopied!
// Position at the beginning of array table read-array h traverse begin start-loop // Get elements, one by one, until NULL returned as a key read-array 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!