Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detail band on entry expression problems
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00747207
Message ID:
00747211
Views:
16
Why should it? Expression 'balance = calcbal()' means that VFP have to compare value of balance with result of calcbal(). Try
_VFP.SetVar("balance", calcbal())
Keep in mind that UDF() in report could be called miltiple times even for one detail record.

>I have created a report variable, balance, and want use that variable for a field on the report. I have a UDF to return the value of the current balance. When I put the expression balance = calcbal() into the on entry expression for the detail band, the variable is not getting updated. I can use just calcbal() as the expression for a field and get the correct balance, but I would rather have it defined as a variable in the detail band so I could do some other calculations with it. Am I using an expression here in the wrong way?
>
>
>Thanks in Advance
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform