上面的按钮
dim sum as single
sum=0
for i=1 to n
sum=sum+val(xs(i,3))
next i
假设平均成绩显示的文本框为t1,格式化显示只有两位小数
t1.text=format(sum/n,"0.00")
下面的按钮
dim man as integer
dim woman as integer
for i=1 to n
if xs(i,2)="男" then
man=man+1
else
woman=woman+1
end if
next i
直接显示两个值就是男生和女生的人数了