Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: itemcontainer.get - Function Up: itemcontainer - Tool Previous: itemcontainer.add - Function


itemcontainer.delete - Function



Package utility
Module misc
Tool itemcontainer


Remove the item from the container


Synopsis
delete(item)


Arguments

item   Item
    Allowed: String or Integer


Returns



Description

This tool function removes the specified item from the container. Item can be an item name or the number of an item. (It does not remove the field from the container to preserve indexing, but sets the item's value to illegal.)



Example
- include 'quanta.g';
T
- const i1 := itemcontainer();
- idx := i1.add(dq.quantity(10,'arcsec'));
- x := i1.get(idx);
- x;
[value=10, unit=arcsec]
- i1.delete(idx);
T
- i1.get(idx);
<fail>: Requested item "1" is not present
        File:   ./itemcontainer.g, Line 152
        Stack:  .() 
-





next up previous contents index
Next: itemcontainer.get - Function Up: itemcontainer - Tool Previous: itemcontainer.add - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15