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.fromrecord - Function Up: itemcontainer - Tool Previous: itemcontainer.length - Function


itemcontainer.torecord - Function



Package utility
Module misc
Tool itemcontainer


Return the contents of the container as a record


Synopsis
torecord(showdeleted)


Arguments

showdeleted   yes or no
    Allowed: Bool
    Default: F


Returns
Record



Description

This tool function recovers the contents of the container into a record where each item has its own named (or numbered) field. If showdeleted is T, even ``illegal'' fields are copied.



Example
- const fish := itemcontainer();
- fish.set('types', "salmon trout gold");
T
- fish.set('fish1', 'trout');
T
- fish.add('salmon');
3
- x := fish.torecord();
- x
[types=salmon trout gold, fish1=trout, *1=salmon] 
- is_record(x);
T





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