N
netboyrock
Unregistered / Unconfirmed
GUEST, unregistred user!
数据库用的是visual forpro,程序片断如下:
table1.first;
repeat
(Findcomponent(Table1.FieldByName('mc').AsString) as TLabel).Left:=strtoint(table1.fieldbyname('x1').asstring);
(Findcomponent(Table1.FieldByName('mc').AsString) as TLabel).Top:=strtoint(table1.fieldbyname('y1').asstring);
table1.next;
until
Table1.EOF;
运行后出现..class eaccessviolation with message 'acessviolation at address xxxxx in mudule'....exe' read if address xxxxx process stopped 错误
如取消repeat语名,重复多次findcomponent和table1.next 语句则程序通过,也能顺利读出数据
请教各路高手!!!
table1.first;
repeat
(Findcomponent(Table1.FieldByName('mc').AsString) as TLabel).Left:=strtoint(table1.fieldbyname('x1').asstring);
(Findcomponent(Table1.FieldByName('mc').AsString) as TLabel).Top:=strtoint(table1.fieldbyname('y1').asstring);
table1.next;
until
Table1.EOF;
运行后出现..class eaccessviolation with message 'acessviolation at address xxxxx in mudule'....exe' read if address xxxxx process stopped 错误
如取消repeat语名,重复多次findcomponent和table1.next 语句则程序通过,也能顺利读出数据
请教各路高手!!!