Home RAP
New Blog Posts: Merging Reports - Part 1 and Part 2

calculaion of a variable in a group band

edited January 2003 in RAP
Hi,

I have varX and varY in a group band. These are sums of detail items, and
work no problems. However in the same group band I have another, varZ which
calculates varY / varX. However, no matter what I try the result is always
zero. Even if I just set varZ to equal varX it shows zero even though varX
is not.

Could this be related to timings? Any suggestions.

RB6.03

Thanks

Alex

Comments

  • edited January 2003
    If they are in the same band, then use the variable's CalcOrder property to
    order the variables so that they calculate in order. If that doesn't help,
    then check that the datatype on the variables are correct. If you have a
    string variable and assign it a value of 35 (integer) then the result is
    always a 0 because variants are used to implement the variable behind the
    scenes and it allows you to set the string type variable to a integer value,
    but it just won't create output other than a zero when you do this.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.