Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | misc | |
Tool | itemcontainer |
value | Item | ||
Allowed: | Any |
This tool function adds the specified item into the container. The item is given a number one higher than the number of existing items in the container. This tool function returns the item number for the new item.
- include 'quanta.g'; T - const i1 := itemcontainer(); - idx := i1.add(dq.quantity(10,'arcsec')); - x := i1.get(idx); - x; [value=10, unit=arcsec]