Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AVERAGE doesn't work with NEXTand FOR: why ??
Message
From
19/12/2005 03:32:24
 
 
To
19/12/2005 02:41:02
Suhas Hegde
Dental Surgeon
Sirsi, India
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01079075
Message ID:
01079100
Views:
27
>>>>
>>
>>>Average f1 all WHILE _tally < 2 for f2 == "BB" to m.myvar
>>>Average f1 all WHILE _tally < 1 for f2 == "BB" to m.myvar
>>>
>>>return m.myvar*1.00 = 2.33 om my machine
>>
>>sure ?
>>
>
>ya 100% sure. run it 5 times and the result is the same....
>it includes all the records and does not stop computing when _tally is 1 or 2
>

try:
LOCATE for f2 == "BB"
Average f1 NEXT 2 for f2 == "BB" to m.myvar
>can u check ????
Previous
Reply
Map
View

Click here to load this message in the networking platform