#168101 - 2006-09-19 08:55 PM
Re: output Statement
|
Mart
KiX Supporter
   
Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
|
Quote:
if there is gonna be a statement called print, make it function. so one day, we hopely can also add the target for printing. file, pipe, network connection etc... even a printer.
I'll put my two cents in the basket for this one. Something like:
Print("What", "How", "Where") What = stuff to print like a word doc to a printer or var to the console. How = C for console, P for printer. Optional Where = Printer.
Code:
$rc = Print("C:\somefile.txt", "P", "\\server\printersharename")
or
Code:
$rc = Print($var, C)
Especially the printer part got me interested cause I had some shittie issues with the print and printto UDF's lately.
_________________________
Mart
- Chuck Norris once sold ebay to ebay on ebay.
|
Top
|
|
|
|
#168104 - 2006-09-20 08:46 AM
Re: output Statement
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
that brings to mind, writeline could act as print() if it would support other streams, not just files.
That would definately be my suggestion. Hang on, it was... http://www.kixtart.org/ubbthreads/showth...page=0&vc=1
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 1739 anonymous users online.
|
|
|