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.torecord - Function Up: itemcontainer - Tool Previous: itemcontainer.makeunconst - Function


itemcontainer.length - Function



Package utility
Module misc
Tool itemcontainer


Returns the number of items


Synopsis
length(showdeleted)


Arguments

showdeleted   yes or no
    Allowed: Bool
    Default: F


Returns
Integer


Description

This tool function returns the number of items in the list of item names. itemcontainer. If showdeleted is set to T, illegal fields are counted.



Example
- const fish := itemcontainer();
- fish.set('types', "salmon trout gold");
T
- fish.set('fish1', 'trout');
T
- fish.add('salmon');
3
- print 'number=', fish.length();
number=3





next up previous contents index
Next: itemcontainer.torecord - Function Up: itemcontainer - Tool Previous: itemcontainer.makeunconst - 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