>>>>
>>
>>>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 ????