Syntax
Removes every entry of a map. The map stays usable.
ClearMap(<map>())Parts
| <map> | The map, written with its empty parentheses: stock(). It must be a NewMap variable or a map field of a record. |
|---|
Example
NewMap stock.i()stock("apple") = 3stock("pear") = 5ClearMap(stock())Console(Str(MapSize(stock()))) ' 0stock("plum") = 1Console(Str(MapSize(stock()))) ' 1In the manual : Arrays, lists and maps