Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Editing report band
Message
 
To
11/01/2002 00:09:34
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00603342
Message ID:
00603448
Views:
13
The problem is that you have entered a line of code that you want processed, but it's expecting an "expression". When you enter "testing=999", it interprets it as "Does testing = 999? If so, return .t., else return .f.". To force it to interpret your expression as a line of code to process, change your expressions to the following:

on entry : EXECSCRIPT('testing=999')
on exit : EXECSCRIPT('testing=444')

Cathy


>Hello.
>
>I have a report with a variable called "testing". The initial value of the
>variable is 0 and "value to store" for the variable is , say 1.
>
>The report has only page header, detail and page footer bands. I drag 2 fields,
>each in Detail and Page Footer in order to display the value of the variable.
>I edit the Detail band by adding the following expression:
>
>on entry : testing=999
>on exit : testing=444
>
>Suppose the value of "testing" printed in Detail band is 999 and value printed
>for "testing" in Page Footer is 444. The problem is value printed for "testing"
>always show 1 in both the Detail band and Page Footer band for all the pages.
>It shows like the expressions in the Detail band are never executed.
>
>Is there any thing wrong with the setting? Please help.
>
>thank you in advance
>
>waifoong
Cathy Pountney, Microsoft Visual FoxPro MVP
Memorial Business Systems, Inc. (www.mbs-intl.com)

My Website: (www.frontier2000.com)
My Blog: (www.cathypountney.blogspot.com)
My Book: The Visual FoxPro Report Writer - Pushing it to the Limit and Beyond
Free MSDN Article: What's New in the VFP 9.0 Report Writer
Free MSDN Article: The VFP 9.0 Report Writer In Action
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform