>>The print when is stored in the FRX's SupExpr memo field.
>>For Shapes the field objtype = 7
>>For Lines objtype = 6
>
>>So you could do the following
>
>>LPARAMETERS tcReport, tcPrintWhen
>>LOCAL lcReport, lcPW
>
>>**>> validate parameters here <<**
>
>>lcReport = ForceExt(tcReport,"frx")
>
>>Use (lcReport)
>>Replace supexpr With tcPrintWhen ;
>> For Inlist(objtype,6,7)
>>Use
>>Compile Report (lcReport) && couldn't hurt
>
>Thanks Trey
>
>Is there a way to tell which band a shape or line is in?
>
>Thanks Pat Murphy
It has to do with the vpos field (which is in milli-somethings ...)
Bands are objtype=9, with different objcode values based on what type of band.
The vpos field shows the height of these.
The vpos field for objects shows their relative position from the very top.
So if a textbox (objtype=8) is at 9700, and band 1 is 7500 and band 2 is 5000, the the textbox is somewhere in the 2nd band : 7500+5000=12500.
I believe the vpos for controls also includes the gray band bar's height, so that needs to be taken into consideration.
ps: Check out the
HOME() + "filespec\60frx.dbf"
for more details on what different fields do.
Insanity: Doing the same thing over and over and expecting different results.