Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SUM not SUMming?
Message
From
02/11/2006 05:17:00
 
 
To
01/11/2006 19:31:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01166137
Message ID:
01166530
Views:
13
Hi Robin,

the problem was null values

>Correction to second example -- nSum1 not nSum2
>>
>>
>>SUM nad_nonnationals, nad_nationals TO nSum1, nSum2
>>WAIT WINDOW TRANSFORM(nSum1) + " + " + ;
>> TRANSFORM(nSum2) + " = " + ;
>> TRANSFORM(nSum1+nSum2)
>>
>> or
>>
>>SUM nad_nonnationals TO nSum1
>>WAIT WINDOW TRANSFORM(nSum1) + " + " + ;
>> TRANSFORM(reccount() - nSum1) + " = " + ;
>> TRANSFORM(reccount())
Frank.

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

Click here to load this message in the networking platform