这个不对了,找不到控件

这个不对了,找不到控件 Delphi / Windows SDK/API
http://www.delphi2007.net/DelphiAPI/html/delphi_20061107194340283.html
在窗体中放了一个edit   和一个按钮。  
  用file-new-other里的thread   object   创建了一个新线程类(Tmy)。  
  里面写了这句代码:  
  procedure   Tmy.Execute;  
  begin  
      {   Place   thread   code   here   }  
        form1.edit.text:='ddd';     //就是这句  
   
  end;  
  这是编译时的错误  
      [Error]   Unit2.pas(35):   Undeclared   identifier:   'form1'  
      [Error]   Unit2.pas(35):   Missing   operator   or   semicolon  
      [Error]   Unit2.pas(35):   Statement   expected,   but   expression   of   type   'String'   found  
      [Fatal   Error]   Unit1.pas(7):   Could   not   compile   used   unit   'Unit2.pas'  
   
  我在Unit1中包含了unit2,  
   
  是什么原因呢??

自己解决了。

转载于:https://www.cnblogs.com/delphi2007/archive/2009/04/08/1431404.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值