Visual FoxPro运行提示操作符/操作数类型不匹配
settalkoffsetfiltertocalculateavg(成绩)toc1calculateavg(成绩)for性别="男"toc2calculateavg(成绩...
set talk offset filter tocalculate avg(成绩) to c1calculate avg(成绩) for 性别="男" to c2calculate avg(成绩) for 性别="女" to c3calculate avg(成绩) for 班级简称="02 会计" to c4calculate avg(成绩) for 班级简称="02 工商" to c5calculate avg(成绩) for 班级简称="02 国贸" to c6thisform.pageframe1.page1.text1.value=c1thisform.pageframe1.page1.text2.value=c2thisform.pageframe1.page1.text3.value=c3thisform.pageframe1.page1.text4.value=c4thisform.pageframe1.page1.text5.value=c5thisform.pageframe1.page1.text6.value=c6
求高人解答 展开
求高人解答 展开
1个回答
展开全部
把C1-C5都加个str试试
thisform.pageframe1.page1.text1.value= Str( c1 )
以此类推
thisform.pageframe1.page1.text1.value= Str( c1 )
以此类推
追问
还是不行,我挂起后箭头指示这一行
calculate avg(成绩) for 性别="男" to c2
追答
calculate avg(成绩) for 性别="男" to c2
语法用法没有问题的,你检查下字段类型吧:
1、字段成绩应该是数值型
2、性别字段应该是字符型,很多人习惯把性别字段设置成 逻辑型,因为(除了太监和人妖)非男即女
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询