unit1.pas

来自「学习您上载的源码为何会被站长不采用或帐号被删除?」· PAS 代码 · 共 45 行

PAS
45 行
字号
unit Unit1;

interface

uses
  Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, Controls,
  IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl,
  IWCompButton, DB, DBTables, IWCompListbox, IWDBStdCtrls;

type
  TIWForm1 = class(TIWAppForm)
    IWButton1: TIWButton;
    DataSource1: TDataSource;
    Table1: TTable;
    IWDBLookupComboBox1: TIWDBLookupComboBox;
    procedure IWButton1Click(Sender: TObject);
    procedure IWAppFormCreate(Sender: TObject);
  public
  end;

implementation

{$R *.dfm}


procedure TIWForm1.IWButton1Click(Sender: TObject);
begin

//WebApplication.ShowMessage(IWDBLookupComboBox1.DataField);
WebApplication.ShowMessage(IWDBLookupComboBox1.Text);
end;

procedure TIWForm1.IWAppFormCreate(Sender: TObject);
begin
if  not Table1.Active then
begin
Table1.Active:=true;
end;
end;

initialization
  TIWForm1.SetAsMainForm;

end.

⌨️ 快捷键说明

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