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


next up previous contents index
Next: help - Function Up: printer - Tool Previous: printer.gui - Function


printer.printvalues - Function



Package utility
Module misc
Tool printer


Print some Glish values


Synopsis
printvalues(values, needcr, usegui)


Arguments

values in Glish variable to be printed
    Allowed: any
needcr in Do we need carriage returns at the end of every line?
    Allowed: boolean
    Default: T
usegui in Use the GUI?
    Allowed: boolean
    Default: F


Description
This function formats a Glish variable (which might be an array), writes it into a temporary file, and prints it and then removes the temporary file. needcr normally needs to be True, the only time it doesn't is if you are printing a Glish string which already has embedded new lines.



Example
- p := printer(display=T)  # use ghostview
- p.printvalues(1:100)     # show 1 2 ... 100 in it








next up previous contents index
Next: help - Function Up: printer - Tool Previous: printer.gui - 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