Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding print when to several shapes and lines
Message
From
07/11/2000 16:34:43
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00439014
Message ID:
00439025
Views:
19
>I need to add the same print when expression to all shapes and lines on several reports. Each report has about 20-30 shapes and lines. Is there a way to write a prg to do this?
>
>Thanks
>
>Pat Murphy

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
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform