⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 unit2.~pas

📁 非常实用本人心血研制不是为了更多我需要的代码不会轻易拿出来换东东的关于盘刻录程序代码
💻 ~PAS
字号:
unit Unit2;

interface

uses
       Classes
   ;


type
  mythread1 = class(TThread)
  private
    { Private declarations }
  protected

    procedure Execute; override;
    public
    constructor create;
  end;

implementation

uses unit1;


{ Important: Methods and properties of objects in VCL can only be used in a
  method called using Synchronize, for example,

      Synchronize(UpdateCaption);

  and UpdateCaption could look like,

    procedure mythread.UpdateCaption;
    begin
      Form1.Caption := 'Updated in a thread';
    end; }

{ mythread }

constructor mythread1.create;
begin
    inherited create(true);
end;

procedure mythread1.Execute;
begin
  { Place thread code here }
  form1.adotable1.first;
   form1.adotable1.DisableControls;
  while not form1.adotable1.eof do
               form1.adotable1.next;
  form1.adotable1.EnableControls ;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -