all: 指所有记录 next n:指当前记录后的n条记录 record n:指第n条记录 rest:指当前记录后的所有记录
next n:指当前记录后的n-1条记录 如:go 1 average a子段 next 5 to b变量 结果:b的值为1-5条记录的平均数
nononono(null,null) go top AVERAGE a子段 next 5 to a ? a 我的意思是计算当前记录的前5条记录的均值,要是当前记录为9,希望得到4到9的均值;为10,希望得到5到10的均值;而不是next 5条记录的。也就是说,要是有和next一样,而是pre(向前)就好了 go 9 average a pre 5 to a ? a nononono: skytears(苦) 请你们帮帮我!
go 9 skip -5 ....
average 还可以跟for 或while 条件(假如当前记录为n): average a字段 to b变量 for recno()>n-5 .and. recno()<=n
scope:all,next n,record n,rest
??????????????????
AVERAGE a子段 next 5 to a
? a
next n:指当前记录后的n条记录
record n:指第n条记录
rest:指当前记录后的所有记录
如:go 1
average a子段 next 5 to b变量
结果:b的值为1-5条记录的平均数
go top
AVERAGE a子段 next 5 to a
? a
我的意思是计算当前记录的前5条记录的均值,要是当前记录为9,希望得到4到9的均值;为10,希望得到5到10的均值;而不是next 5条记录的。也就是说,要是有和next一样,而是pre(向前)就好了
go 9
average a pre 5 to a
? a
nononono: skytears(苦) 请你们帮帮我!
skip -5
....
average a字段 to b变量 for recno()>n-5 .and. recno()<=n