我在用TLISTVIEW控件来显示数据的结构,可我在PRIVATE部分写入的代码老是出错 private { Private declarations } procedure tform1.shilian listview1.items.clear; with query1 do begin first; while not eof do begin caption:=query1.fieldbyname('学号').asstring; subitems.add(query1.fieldbyname('姓名').asstring); subitems.add(query1.fieldbyname('年龄').asstring); subitems.add(query1.fieldbyname('性别').asstring); subitems.add(query1.fieldbyname('政治面貌').asstring); end; next; end; end; 你们谁能告诉我是哪错了? 或加我qq:56168461 小妹谢谢你了
----------------------------------------------
-