Hash Remove

Purpose

Removes an element from a hash table.

Syntax

Hash Remove name[ key$ | % idx ]

Description

Hash Remove deletes a single element from a hash table. The element is either indicated by key or by index.

Example

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[%]

Remarks

See Hash for more information on the Hash table.

See Also

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}