Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUM not SUMming?
Message
From
01/11/2006 09:33:12
 
 
To
01/11/2006 09:18:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01166137
Message ID:
01166146
Views:
9
>>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!
>
>Have you tried running SUM on each field individually to see the results?
>
>Tamar

Hi Tamar,

yes the 64, shows the result for the first field, 4 for the second, and 9 if I SUM nad_nonnationals + nad_nationals.
Frank.

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

Click here to load this message in the networking platform