Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUM not SUMming?
Message
From
01/11/2006 09:53:14
 
 
To
01/11/2006 09:13:26
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01166137
Message ID:
01166152
Views:
12
It finally hit home!

There are NULL values causing the totals to go off. Not quite sure how some of the columns were working correctly, but at least it's working now.

>I am running this code:
>
>
>SELECT c_NationalityDetails
>m.lnOldRecNo = RECNO()
>
>SUM nad_nonnationals, nad_nationals, nad_nonnationals + nad_nationals TO nSum1, nSum2, nSumTotal
>
>WAIT WINDOW TRANSFORM(nSum1) + " + " + TRANSFORM(nSum2) + " = " + TRANSFORM(nSumtotal)
>
>
>I get the following displayed:
>
>64 + 4 = 9
>
>Does anyone have any idea why this could be happening?
>
>I've tried the sample code in the help on SUM and that displays correctly.
>
>I am stumped!
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform