Removes an element from a hash table.
Hash Remove name[ key$ | % idx ]
Hash Remove deletes a single element from a hash table. The element is either indicated by key or by index.
Dim ha As Hash Variant
ha["new"] = 2.3
Hash Remove ha["new"]
Print ha[%]
or by index:
Dim ha As Hash Variant
ha["new"] = 2.3
Hash Remove ha[% 1] // Delete the first element
Print ha[%]
...or...
Dim ha As Hash Variant
ha["new"] = 2.3
Hash Remove ha[% ha[%]] // Delete the last element
Print ha[%]
See Hash for more information on the Hash table.
Hash Add, Hash Erase, Hash Input, Hash Load, Hash Save, Hash Sort, Hash Write
{Created by Sjouke Hamstra; Last updated: 08/10/2014 by James Gaite}