sendtransfer.pas.~21~

来自「自助公交信息短信服务平台」· ~21~ 代码 · 共 72 行

~21~
72
字号
unit sendtransfer;

interface

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

type
  TForm3 = class(TForm)
    Memo1: TMemo;
    Label1: TLabel;
    Label2: TLabel;
    Edit1: TEdit;
    ListBox1: TListBox;
    Label3: TLabel;
    ComboBox1: TComboBox;
    Label4: TLabel;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    Button4: TButton;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button4Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form3: TForm3;

implementation
uses mainProfile;
{$R *.dfm}

procedure TForm3.Button4Click(Sender: TObject);
begin
Close();
end;

procedure TForm3.Button2Click(Sender: TObject);
begin
Edit1.Text:=null;
end;

procedure TForm3.Button1Click(Sender: TObject);
begin
if length(Trim(Edit1.Text))<10 then
begin
 showmessage('号码不能小于11位');
 end
 else
begin
          setofstringgrid1[1]:= Trim(Edit1.Text);
      setofstringgrid1[2]:=Trim(Memo1.Text);
      //3-6未定制日期和实际日期时间
      setofstringgrid1[3]:=datetostr(date());
       setofstringgrid1[4]:=datetostr(time());
       setofstringgrid1[5]:=datetostr(date());
       setofstringgrid1[6]:=datetostr(time());
     setofstringgrid1[7]:='administrator';
     setofstringgrid1[8]:='未处理';
     Form1.insertstringgrid1();
   end;

end;

end.

⌨️ 快捷键说明

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