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


next up previous contents index
Next: catalog.getconfirm - Function Up: catalog - Tool Previous: catalog.getmask - Function


catalog.setconfirm - Function



Package utility
Module catalog
Tool catalog


Set the confirmation option


Synopsis
setconfirm(flag)


Description
Before some operations (copy, rename, delete), the user can be prompted for confirmation. This function sets the default for that option. It can also be set from the GUI or from the aipsrc file like
catalog.confirm: 	yes
Possible confirm options are:
  • yes means that confirmation is asked for all files.
  • directory means that confirmation is only asked for directories.
  • no means that confirmation is never asked.
For backward compatibility the boolean values T (=yes) and F (=no) are also possible.

Note that when using dc.setconfirm() in a script it should always be done like:

cursts := dc.getconfirm();
dc.setconfirm(F);
dc.delete (...);
dc.setconfirm(cursts);
otherwise the default confirmation status is changed unexpectedly in the GUI.



Arguments

flag in Flag
    Allowed: yes, directory ,no
    Default: yes


Returns
Bool


Example
  include "catalog.g";
  dc.setconfirm(T)





next up previous contents index
Next: catalog.getconfirm - Function Up: catalog - Tool Previous: catalog.getmask - 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