Class TADOConWizard

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TADOConWizard = class(TComponent)

Description

Hierarchy

  • TComponent
  • TADOConWizard

Overview

Fields

Public idProviderStr: string;
Public idEndStr: string;
Public idProvider: array [TProviderType] of string;
Public idDBFile: array [TProviderType] of string;
Public idDefaultDir: array [TProviderType] of string;
Public idPsw: array [TProviderType] of string;
Public LogText: TStringList;

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure Loaded; override;
Public function ConnectToStr(ConStr: string): boolean;
Public function ConnectToFile(DBFileName: string; UseUDLFiles: boolean): boolean;
Public function Connect: boolean;
Public procedure Disconnect;
Public function OpenAll_LastFile: boolean;
Public function OpenAll_SelectFile: boolean;
Public function OpenAll_ToFile(FileName: string): boolean;
Public function CreateUDLFile: boolean;
Public function SaveLog(var LogFileName: string): boolean;

Properties

Published property ADOConnection: TADOConnection read FADOConnection write SetADOConnection;
Published property DefaultDBFile: string read FDefaultDBFile write FDefaultDBFile;
Published property UDLFilePath: string read FUDLFilePath write FUDLFilePath;
Published property UDLFileMask: string read FUDLFileMask write FUDLFileMask;
Published property ConnectedFile: string read GetConnectedFile;
Published property LogDetails: boolean read FLogDetails write FLogDetails default false;
Published property ErrDialogShow: TConnectionEvents read FErrDialogShow write FErrDialogShow default[AfterConnecting, AfterLogin, AfterOpening];
Published property OnInfo: TOnInfo read FOnInfo write FOnInfo;
Published property OnGetDBFilePassword: TOnGetDBFilePassword read FOnGetDBFilePassword write FOnGetDBFilePassword;
Published property OnLoginUser: TOnLoginUser read FOnLoginUser write FOnLoginUser;
Published property OnOpenTables: TOnOpenTables read FOnOpenTables write FOnOpenTables;

Description

Fields

Public idProviderStr: string;
 
Public idEndStr: string;
 
Public idProvider: array [TProviderType] of string;

Format strings for generating of connection string

Public idDBFile: array [TProviderType] of string;

Format strings for generating of connection string

Public idDefaultDir: array [TProviderType] of string;

Format strings for generating of connection string

Public idPsw: array [TProviderType] of string;

Format strings for generating of connection string

Public LogText: TStringList;

List of all info strings - log file

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure Loaded; override;
 
Public function ConnectToStr(ConStr: string): boolean;

Tries to connect using connection string "ConStr", returns the result (true=connected)

Public function ConnectToFile(DBFileName: string; UseUDLFiles: boolean): boolean;

Tries to connect to DBFileName using current connection string and/or using UDL files if "UseUDLFiles" is true, returns the result

Public function Connect: boolean;

Tries to connect using current connection string and/or to current DBFile using UDL files, returns the result

Public procedure Disconnect;

Disconnect connection

Public function OpenAll_LastFile: boolean;

Tries to connect using current connection string and/or to current DBFile using UDL files, if it is empty, try to connect to "DefaultDBFile", returns the result; function provides error and select file dialog

Public function OpenAll_SelectFile: boolean;

Shows select file dialog and try to connect to selected file using UDL files, returns the result; function provides error and select file dialog

Public function OpenAll_ToFile(FileName: string): boolean;

Tries to connect to "FileName" file using UDL files, returns the result; function provides error and select file dialog

Public function CreateUDLFile: boolean;

Creates new UDL file and opens it for editing, returns the result

Public function SaveLog(var LogFileName: string): boolean;

Saves "LogText" to "LogFileName", returns the result

Properties

Published property ADOConnection: TADOConnection read FADOConnection write SetADOConnection;

Link to TADOConnection

Published property DefaultDBFile: string read FDefaultDBFile write FDefaultDBFile;
 
Published property UDLFilePath: string read FUDLFilePath write FUDLFilePath;

Path with UDL files

Published property UDLFileMask: string read FUDLFileMask write FUDLFileMask;
 
Published property ConnectedFile: string read GetConnectedFile;
 
Published property LogDetails: boolean read FLogDetails write FLogDetails default false;
 
Published property ErrDialogShow: TConnectionEvents read FErrDialogShow write FErrDialogShow default[AfterConnecting, AfterLogin, AfterOpening];

Defines after which events Error dialog could be shown

Published property OnInfo: TOnInfo read FOnInfo write FOnInfo;
 
Published property OnGetDBFilePassword: TOnGetDBFilePassword read FOnGetDBFilePassword write FOnGetDBFilePassword;
 
Published property OnLoginUser: TOnLoginUser read FOnLoginUser write FOnLoginUser;
 
Published property OnOpenTables: TOnOpenTables read FOnOpenTables write FOnOpenTables;
 

Generated by PasDoc 0.13.0 on 2018-03-18 20:56:10