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.iscelldefined - Function Up: table - Tool Previous: table.renamecol - Function


table.removecols - Function



Package utility
Module table
Tool table


remove one or more columns


Synopsis
removecols(columnames)


Description
Columns can be removed from a table that was opened readonly=F.
It may not always be possible to remove a column, because some data managers do not support column removal. However, if all columns of a data manager are removed, it will always succeed. It results in the removal of the entire data manager (and its possible files).
Note that function getdminfo can be used to find which columns are served by which data manager.


Arguments

columnames in names of columns to be removed
    Allowed: Vector of Strings


Returns
Bool


Example
  t:=table("mytable", readonly=F)
  t.removecols ("col1 col2")
# T
Two columns are removed.





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