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


next up previous contents index
Next: table.getkeywords - Function Up: table - Tool Previous: table.getcolshapestring - Function


table.getkeyword - Function



Package utility
Module table
Tool table


get value of specific table keyword


Synopsis
getkeyword(keyword)


Description
The value of the given table keyword is returned. The value can be of any type, including a record and a table.
If a keyword is a table, its value is returned as a string containing the table name prefixed by 'Table: '. That prefix is automatically removed by table functions like open and tableexists.
It is possible that the value of a keyword is a record itself (arbitrarily deeply nested). A field in such a subrecord can be read by separating the name with dots.



Arguments

keyword in Name or seqnr of keyword
    Allowed: String|Int


Returns
Value


Example
  t:=table('tcal')
# successful readonly open of table  tcal :  9 columns, 33 rows
  t.getkeyword('Interval')
# 30
  t.getkeyword('rec.fld')     # get field from a record
# 3.14





next up previous contents index
Next: table.getkeywords - Function Up: table - Tool Previous: table.getcolshapestring - 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