PRINT a,b,c,d,e
will print the variables denoted in a *formatted* printout. To make it formatted, all the print-outs are queued (in Core) and a proper column width is detected. This might be, usually, the max. length of all members of a column, unless the total width of the printout extends the glbal available maximum width. When this is the case, the text columns are word-wrapped as necessary. With PRINT, any column is headed by the HEAD defined. When NO head is defined, the variables Name (or the most significant Name of the PROPERTY used) is used as the heading. Thus, a formatted print is produced anyway. The PRINT may be designated to a FILE, using the syntax PRINT a,b,c,d TO file When no file is given, the PRINTOUT goes to the CONSOLE. When a preceeding TITLE or FOOTING has been used, those will be used as well.. Any Objections ? Tom. -- Thomas Schneider Projects ReyC & LOGOS on www.KENAI.com _______________________________________________ Ibm-netrexx mailing list [hidden email]
Tom. (ths@db-123.com)
|
When necessary, use a HTML TABLE row. A simple subroutine can be
written to do this. In the program this only needs (...) added to what you have, plus a final "put it out"-command that wraps it in the TABLE-tags. Put it in a reusable package if you want, or do it on the fly. Do NOT add any unnecessary thing to the language. Jeff Hennick On 9/24/2010 6:19 PM, Thomas Schneider wrote: > PRINT a,b,c,d,e > > will print the variables denoted in a *formatted* printout. > > To make it formatted, all the print-outs are queued (in Core) and a > proper > column width is detected. This might be, usually, the max. length of > all members of a column, unless the total width of the printout extends > the glbal available maximum width. When this is the case, the text > columns > are word-wrapped as necessary. > > With PRINT, any column is headed by the HEAD defined. When NO head is > defined, the variables Name (or the most significant Name of the > PROPERTY used) is used as the heading. > > Thus, a formatted print is produced anyway. > > The PRINT may be designated to a FILE, using the syntax > > PRINT a,b,c,d TO file > > When no file is given, the PRINTOUT goes to the CONSOLE. > > When a preceeding TITLE or FOOTING has been used, > those will be used as well.. > > Any Objections ? > > Tom. > Ibm-netrexx mailing list [hidden email] |
In reply to this post by Thomas.Schneider.Wien
Thomas,
It seems to me that your show/labels/print proposals are targeted to debugging and somewhat already present in the language by means of TRACE. It seems to me also that these might be implemented as functions better than polluting the core language. Certainly some bit of evil reflection could be needed at some places but, then, that could be an acceptable compromise in a piece of infrastructure like this. --- Saludos / Kind regards. David Requena El 25/09/2010 0:19, Thomas Schneider escribió: PRINT a,b,c,d,e _______________________________________________ Ibm-netrexx mailing list [hidden email] |
Free forum by Nabble | Edit this page |