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.removecols - Function Up: table - Tool Previous: table.addcols - Function


table.renamecol - Function



Package utility
Module table
Tool table


rename a column


Synopsis
renamecol(oldname, newname)


Description
A column can be renamed in a table that was opened readonly=F.
However, renaming is not possible in a (reference) table resulting from a select or sort operation.


Arguments

oldname in name of column to be renamed
    Allowed: String
newname in new name of column
    Allowed: String


Returns
Bool


Example
  t:=table("mytable", readonly=F)
  t.renamecol ('colold', 'colnew')
# T
Column colold is renamed to colnew.





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