码迷,mamicode.com
首页 > Windows程序 > 详细

Delphi窗体互相调用

时间:2014-10-19 14:17:33      阅读:249      评论:0      收藏:0      [点我收藏+]

标签:io   ar   for   sp   on   bs   as   nbsp   编译器   

在Form1和form2的Uses下加各自的单元,但是要避免循环调用,不然编译器是报错的。
应该这样调用:
unit Unit1;

interface

uses
   Unit2.pas;
......
--------------------------
unit Unit2;

interface

uses
   ......

var
  Form2: TForm2;

implementation
Uses
   Unit1.pas
......

Delphi窗体互相调用

标签:io   ar   for   sp   on   bs   as   nbsp   编译器   

原文地址:http://www.cnblogs.com/smartlittleant/p/4034591.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!