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