MyDac FastReport component is obsolete
Posted: Wed 02 Nov 2005 13:33
I donwloaded the last version of MyDac and realized that the code of the FastReport component (demo folder) is obsolete.
The TfrxMYDACDatabase object is not of the correct type. I had to change the declaration a little bit. Maybe you can correct this in the next MyDac release. Here below is the modified code (frMyDacComponents.pas):
TfrxMYDACDatabase = class(TfrxDialogComponent)
private
FConnection: TMyConnection;
protected
function GetLoginPrompt: Boolean;
procedure SetLoginPrompt(Value: Boolean);
function GetDatabaseName: string;
procedure SetDatabaseName(const Value: string);
function GetPort: integer;
procedure SetPort(Value: integer);
function GetUsername: string;
procedure SetUsername(const Value: string);
function GetPassword: string;
procedure SetPassword(const Value: string);
function GetServer: string;
procedure SetServer(const Value: string);
function GetConnected: Boolean;
procedure SetConnected(Value: Boolean);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
class function GetDescription: String; override;
procedure SetLogin(const Login, Password: String);
property Connection: TMyConnection read FConnection;
published
property LoginPrompt:Boolean read GetLoginPrompt write SetLoginPrompt default True;
property DatabaseName: String read GetDatabaseName write SetDatabaseName;
property Port: integer read GetPort write SetPort default MYSQL_PORT;
property Username: string read GetUsername write SetUsername;
property Password: string read GetPassword write SetPassword;
property Server: string read GetServer write SetServer;
property Connected: Boolean read GetConnected write SetConnected default False;
end;
The TfrxMYDACDatabase object is not of the correct type. I had to change the declaration a little bit. Maybe you can correct this in the next MyDac release. Here below is the modified code (frMyDacComponents.pas):
TfrxMYDACDatabase = class(TfrxDialogComponent)
private
FConnection: TMyConnection;
protected
function GetLoginPrompt: Boolean;
procedure SetLoginPrompt(Value: Boolean);
function GetDatabaseName: string;
procedure SetDatabaseName(const Value: string);
function GetPort: integer;
procedure SetPort(Value: integer);
function GetUsername: string;
procedure SetUsername(const Value: string);
function GetPassword: string;
procedure SetPassword(const Value: string);
function GetServer: string;
procedure SetServer(const Value: string);
function GetConnected: Boolean;
procedure SetConnected(Value: Boolean);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
class function GetDescription: String; override;
procedure SetLogin(const Login, Password: String);
property Connection: TMyConnection read FConnection;
published
property LoginPrompt:Boolean read GetLoginPrompt write SetLoginPrompt default True;
property DatabaseName: String read GetDatabaseName write SetDatabaseName;
property Port: integer read GetPort write SetPort default MYSQL_PORT;
property Username: string read GetUsername write SetUsername;
property Password: string read GetPassword write SetPassword;
property Server: string read GetServer write SetServer;
property Connected: Boolean read GetConnected write SetConnected default False;
end;