读书人

单元调用窗体的有关问题

发布时间: 2012-02-26 20:19:44 作者: rapoo

单元调用窗体的问题
我有两个单元 unit_main 和 unit2 一个窗体form, checkbox1

我在unit2里写了代码 if checkbox1.Checked then

运行出错 Could not compile used unit'unit2.pas'

请问要怎么解决问题

[解决办法]
在unit2的

Delphi(Pascal) code
unit2.....implementationuses unit_main.....if form1.checkbox1.Checked then..... 

读书人网 >.NET

热点推荐