[futurebasic] Re: Print Util.fltr Bug and questions

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 1998 : Group Archive : Group : All Groups

From: BMichael <BMichael@...>
Date: Wed, 18 Mar 1998 16:32:21 EST
>Bill Michael wrote:
>< (BTW: The easy translation of "numberOfCopies = 
>(**thePrRecHdl).prJob.iCopies"
>< is "copies% = [PRHANDLE]+66".) 
>
>This can't be right. It would have to be 
>copies% = {[PRHANDLE]+66}                      (note the {})

You're absolutely right. I wasn't thinking working code, I was tracing 
the "66", and I left out the braces. Carelessness. Trying to figure out 
why "66", "82", and "whatever" were all being used by different programs.

>The most direct translation (and backwards traceable, IMHO) would be 
>numberOfCopies% = thePrRecHdl&..prJob.iCopies%
>
>Interesting to note where the 66 comes from: _prJob is listed as 62 in the 
>constants tool, and _iCopies is 4.

Yep! I like the thePrRecHdl&..prJob.iCopies% notation; it specifies that 
you're looking at the print job subsection of the print record. But I've 
seen way too many programs use {[PRHANDLE]+_iCopies%}, which of course is 
way off. And AFAIK (I haven't tried it) you can't use 
PRHANDLE..prJob.iCopies%, but must assign a handle of your own to point 
at PRHANDLE. I was trying to give a "one liner".

Bill