📄 sledb.pas
字号:
unit sledb;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, ImgList, ComCtrls, ToolWin;
type
Tfrmseldb = class(TForm)
com: TComboBox;
Label1: TLabel;
ToolBar1: TToolBar;
ToolButton1: TToolButton;
ToolButton2: TToolButton;
ToolButton3: TToolButton;
ToolButton4: TToolButton;
ToolButton5: TToolButton;
ImageList1: TImageList;
procedure ToolButton4Click(Sender: TObject);
procedure ToolButton2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
frmseldb: Tfrmseldb;
isdb:string;
implementation
{$R *.dfm}
procedure Tfrmseldb.ToolButton4Click(Sender: TObject);
begin
if application.MessageBox('请确认是否要退出数据库的选择?',':提示:',mb_yesno)=idyes then
begin
halt;
end;
end;
procedure Tfrmseldb.ToolButton2Click(Sender: TObject);
begin
if com.Text='access2000本地数据库' then
begin
isdb:='access';
end
else
if com.Text='sqlserver2000数据库' then
begin
isdb:='sqlserver';
end
else
begin
application.MessageBox('请先选择数据库',':提示:',mb_ok);
exit;
end;
end;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -