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

📄 txtext.pas

📁 文件搜索的代码
💻 PAS
字号:
unit txtext;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls;

type
  TFormCfgText = class(TForm)
    lblExt: TLabel;
    memoExt: TMemo;
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FormCfgText: TFormCfgText;

implementation

uses main, results;

{$R *.dfm}

procedure TFormCfgText.FormClose(Sender: TObject;
  var Action: TCloseAction);
var
 TFile: TextFile;
 tmp: string;
 i: integer;
begin
 // Open and write extensions file
 AssignFile(TFile, FormMain.ExtFile);
 ReWrite(TFile);

 for i:=0 to memoExt.Lines.Count-1 do
  if memoExt.Lines.Strings[i] <> '' then
   tmp := tmp + memoExt.Lines.Strings[i] + ',';
   
 Delete(tmp, Length(tmp), 1);
 WriteLn(TFile, tmp);
 CloseFile(TFile);
 FormResults.Ext := tmp;
end;

end.

⌨️ 快捷键说明

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