>To Screen isn't documented, but I just tried it and it works. My guess is it's the same as Preview, but without the toolbar, and without showing a single page at a time. The problem that's come up previously with this is that in certain cases, the page count isn't accurate.
>
Yes, the page count may not be accurate as the SCREEN fit or FILE fit is not the real Print
(Comparive the Graphic printing and DOS ASCII feeding..)
if you check the FILE xxx.txt, you may find that
some field is partly cut as use NORMAL ASCII char length to calculate
but it may print all as your selected font is small enough!
But what I highlight because you have a term: NOCONSOLE (if you don't give this word...)
it will show out in SCREEN..
Now, just a joke, print to SCREEN but don't show out!
Um... I concern on speed...
As you know, if you code without printing on screen, the speed is very fast!
b4Forloop = SECONDS()
For iX = 1 to 1000
? iX
EndFor
Messagebox([Times for loop 1000:] + alltrim(str(SECONDS()-b4Forloop)))
and without the ? iX line, you will find it the time different is huge!
Whereas if the Forloop is writing a line to a FILE xxx.txt, which is fast?
and also for above coding, if SET SCREEN OFF, will it run faster?!
I agree that TO SCREEN is pretty as no side-product is made but the most concern is time...
as the time consuming is not less for every report printing.. SQL... and so on to do it!
>
>>Hi, Barbara,
>>Will it work faster if:
>>
>>> nLastPage = 0
>>> REPORT FORM whatever TO
SCREEN NOCONSOLE
>>> nLastPage = _PAGENO
The weak wait for chance, The strong bid for chance,
The clever notch up chance, but The merciful give you chance.