Class TADOConWizard
Unit
ADOConWizard
Declaration
type TADOConWizard = class(TComponent)
Description
Hierarchy
Overview
Fields
Methods
Properties
Description
Fields
|
idProviderStr: string; |
|
|
idEndStr: string; |
|
|
idProvider: array [TProviderType] of string; |
Format strings for generating of connection string
|
|
idDBFile: array [TProviderType] of string; |
Format strings for generating of connection string
|
|
idDefaultDir: array [TProviderType] of string; |
Format strings for generating of connection string
|
|
idPsw: array [TProviderType] of string; |
Format strings for generating of connection string
|
|
LogText: TStringList; |
List of all info strings - log file
|
Methods
|
constructor Create(AOwner: TComponent); override; |
|
|
destructor Destroy; override; |
|
|
procedure Loaded; override; |
|
|
function ConnectToStr(ConStr: string): boolean; |
Tries to connect using connection string "ConStr", returns the result (true=connected)
|
|
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
|
|
function Connect: boolean; |
Tries to connect using current connection string and/or to current DBFile using UDL files, returns the result
|
|
procedure Disconnect; |
Disconnect connection
|
|
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
|
|
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
|
|
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
|
|
function CreateUDLFile: boolean; |
Creates new UDL file and opens it for editing, returns the result
|
|
function SaveLog(var LogFileName: string): boolean; |
Saves "LogText" to "LogFileName", returns the result
|
Properties
|
property ADOConnection: TADOConnection read FADOConnection write SetADOConnection; |
Link to TADOConnection
|
|
property DefaultDBFile: string read FDefaultDBFile write FDefaultDBFile; |
|
|
property UDLFilePath: string read FUDLFilePath write FUDLFilePath; |
Path with UDL files
|
|
property UDLFileMask: string read FUDLFileMask write FUDLFileMask; |
|
|
property ConnectedFile: string read GetConnectedFile; |
|
|
property LogDetails: boolean read FLogDetails write FLogDetails default false; |
|
|
property ErrDialogShow: TConnectionEvents read FErrDialogShow write FErrDialogShow default[AfterConnecting, AfterLogin, AfterOpening]; |
Defines after which events Error dialog could be shown
|
|
property OnInfo: TOnInfo read FOnInfo write FOnInfo; |
|
|
property OnGetDBFilePassword: TOnGetDBFilePassword read FOnGetDBFilePassword write FOnGetDBFilePassword; |
|
|
property OnLoginUser: TOnLoginUser read FOnLoginUser write FOnLoginUser; |
|
|
property OnOpenTables: TOnOpenTables read FOnOpenTables write FOnOpenTables; |
|
Generated by PasDoc 0.13.0 on 2018-03-18 20:56:10
|