Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | utility | |
Module | misc | |
Tool | itemcontainer |
item | Item name or number | ||
Allowed: | String or integer |
This tool function recovers the specified variable into a Glish variable. You can specify the item either by its name or by its number.
- include 'quanta.g'; T - const i1 := itemcontainer(); - i1.set('type', 'boxcar'); T - idx := i1.add(dq.quantity(10,'arcsec')); - type := i1.get('type'); - type; boxcar - type := i1.get(1); - type; boxcar - width := i1.get(2); - width; [value=10, unit=arcsec] - x := i1.get(idx); - x; [value=10, unit=arcsec]