Map.remove Method [AX 2012]
Removes a (key, value) pair from a map.
The following example checks whether a particular key value exists in a map. If the value exists, the method deletes the key and its corresponding value. The method returns true if the value was found and false if the key did not exist in the map.
public boolean clear(str owner)
{
// maps is a class variable
if (maps.exists(owner))
{
maps.remove(owner);
}
else
{
return false;
}
return true;
}
Community Additions
ADD
Show: