单元调用窗体的有关问题

单元调用窗体的问题我有两个单元 unit_main 和 unit2 一个窗体form, checkbox1我在unit2里写了代码 if che

单元调用窗体的问题
我有两个单元 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.....