.NET Zip component, Delphi Zip component, Barcode .NET, BDE Replacement and other .NET and Delphi components from ComponentAce
Products Download Order Contact us

Search
 

Delphi/C++ Components
.NET Components
ActiveX Controls
Kylix Components

Download

Download
Download Commercial
Trial Limitations

Support

Submit Request
Support Options

Order

Purchase
Competitive Upgrade
Premium Support
Sales Policy
Upgrade Policy
License Types

Info

News
Mailing List
Articles
Testimonials



About Us
Partners
Links
Contact Us
Link to Us





Home > Delphi/C++ Components > Absolute Database > Make Executable Database Delphi Example

Absolute Database

Overview | Features | Requirements | Testimonials | SQL Samples | Code Samples | Screenshots | See Also | Download | Order
Make Executable Database Delphi Example
Illustrates how to use MakeExecutableDatabase method

Download Absolute Database | Learn more

unit MakeExeDBMain;

interface
{$I CompVer.inc}

uses
{$IFDEF D6H}
  Variants,
{$ENDIF}
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ABSMain, ShellApi;

type
  TForm1 = class(TForm)
    edOutput: TEdit;
    edStub: TEdit;
    edDatabase: TEdit;
    Label1: TLabel;
    Label2: TLabel;
    Label3: TLabel;
    Button1: TButton;
    Button2: TButton;
    Button3: TButton;
    GroupBox2: TGroupBox;
    Label4: TLabel;
    dlgOpen: TOpenDialog;
    dlgSave: TSaveDialog;
    Button4: TButton;
    dbExecutable: TABSDatabase;
    procedure Button1Click(Sender: TObject);
    procedure Button2Click(Sender: TObject);
    procedure Button3Click(Sender: TObject);
    procedure Button4Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Button1Click(Sender: TObject);
begin
  if dlgOpen.Execute then
    edStub.Text := dlgOpen.FileName;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  if dlgOpen.Execute then
    eddatabase.Text := dlgOpen.FileName;
end;

procedure TForm1.Button3Click(Sender: TObject);
begin
  if dlgSave.Execute then
    edOutput.Text := dlgSave.FileName;
end;

procedure TForm1.Button4Click(Sender: TObject);
begin
  dbExecutable.DatabaseFileName := edDatabase.Text;
  if (AnsiCompareText(ExtractFileExt(edOutput.Text), '.exe') <> 0) then
    edOutput.Text := edOutput.Text + '.exe';
  dbExecutable.MakeExecutableDatabase(edStub.Text, edOutput.Text);
  ShellExecute(Handle, 'open', PChar(edOutput.Text), nil, nil, SW_SHOWDEFAULT)

end;

end.



Make Executable Database Delphi Example
Download Absolute Database | Learn more


Product Info


Current version: 7.95
Released: February 08, 2023
Price: $ 149

downloadorder


Our Customers



Testimonials

Component Ace is all that it advertises. It is easy to implement and is very fast.

In addition, the customer support is the best I have ever had. All my questions were answered within hours, often immediately. The responses also answered my questions, no need for followup emails.

If your application needs the functionality that Component Ace provides, search no further.

Linda Murphy

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Dec 22, 2024