程序为:
AdoQuery2.Close;
AdoQuery2.Sql.Clear;
AdoQuery2.sql.Add('select avg(成绩) as pingjunfen from std where 科目="'+DBLookupComboBox2.text+'"');
AdoQuery2.Open;
label6.Caption:=inttostr(adoquery2.FieldValues['pingjunfen']);Watch list里面的调试错误信息为:
select max(成绩) from std where std.科目="'+DBLookupComboBox2.text'" and: Undeclared identifier: 'select'
DBLookupComboBox2: ([csInheritable], False, False, (0, 0))
select: Undeclared identifier: 'select'
sqlstr: Symbol was eliminated by linker
select: Undeclared identifier: 'select'
sqlstr3: ''
label8.Caption:=inttostr(adoquery3.FieldValues['zuigaofen']);: <disabled>
sqlstr:='select avg(成绩) from std where 考试时间='+DBLookupComboBox4.text: Symbol was eliminated by linker为什么说Undeclared identifier:‘select’??
AdoQuery2.Close;
AdoQuery2.Sql.Clear;
AdoQuery2.sql.Add('select avg(成绩) as pingjunfen from std where 科目="'+DBLookupComboBox2.text+'"');
AdoQuery2.Open;
label6.Caption:=inttostr(adoquery2.FieldValues['pingjunfen']);Watch list里面的调试错误信息为:
select max(成绩) from std where std.科目="'+DBLookupComboBox2.text'" and: Undeclared identifier: 'select'
DBLookupComboBox2: ([csInheritable], False, False, (0, 0))
select: Undeclared identifier: 'select'
sqlstr: Symbol was eliminated by linker
select: Undeclared identifier: 'select'
sqlstr3: ''
label8.Caption:=inttostr(adoquery3.FieldValues['zuigaofen']);: <disabled>
sqlstr:='select avg(成绩) from std where 考试时间='+DBLookupComboBox4.text: Symbol was eliminated by linker为什么说Undeclared identifier:‘select’??
解决方案 »
- 来论坛刚好混满3个月,散分
- 如果实现把窗口钉在桌面上?
- 在做一个下载工具,可是下载不了邮箱里的附件(http://xxx.xxx.xxx.xxx:8383/Xae5a99ccce9ec89bc9979a77fa/attach/Main/3/1/1182823321/pi
- 回调函数的使用
- 各位高手给个动态生成报表的解决方案!!!
- 找老乡来了, MM最好了, 为我们的江西骄傲吧
- 有谁用过imageEdit控件?ImgEdit.PrintImage函数中的参数快把我搞死了
- 请问,读取IIS站点的全部虚拟路径名称及对应物理路径应该怎么读?
- 高手请指点,大虾请进,强分
- 一个有意思的数据库问题
- dbgrid+treeview组合录入数据的问题
- 超奇怪的问题,越想越想不通:关于TFont的!
AdoQuery2.Sql.Clear;
AdoQuery2.sql.Add('select avg(成绩) as pingjunfen from std where 科目='''+DBLookupComboBox2.text+'''');
AdoQuery2.Open;
label6.Caption:=(adoquery2.Fieldbyname('pingjunfen').asstring;