Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1229015
  • 博文数量: 788
  • 博客积分: 4000
  • 博客等级: 上校
  • 技术积分: 7005
  • 用 户 组: 普通用户
  • 注册时间: 2008-08-19 15:52
文章存档

2017年(81)

2011年(1)

2009年(369)

2008年(337)

分类:

2009-04-08 09:22:44



在窗体中放了一个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,  
   
  是什么原因呢??

自己解决了。



--------------------------
新闻:FriendFeed 正在踏进 twitter 的领域
导航:博客园首页  知识库  新闻  招聘  社区  小组  博问  网摘  找找看
阅读(358) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~