MyDAC 4.0.0.1 : issue with a working code (MyDac 3.55.x)

MyDAC 4.0.0.1 : issue with a working code (MyDac 3.55.x)

Postby swierzbicki » Tue 07 Jun 2005 13:51

Hi,

This worked well with the 3.55 branch.

Code: Select all
  fMyConnection:=TMyConnection.Create(nil);
  try
      with fMyConnection do
      Begin
        loginprompt:=false;
        pooling:= TCustomMyDataSet(ADataset).Connection.pooling;
        PoolingOptions  := TCustomMyDataSet(ADataset).Connection.PoolingOptions;
        Server  := TCustomMyDataSet(ADataset).Connection.Server;
        Username := TCustomMyDataSet(ADataset).Connection.Username;
        Password  := TCustomMyDataSet(ADataset).Connection.Password;
        Database := TCustomMyDataSet(ADataset).Connection.Database;
        IsolationLevel  := TCustomMyDataSet(ADataset).Connection.IsolationLevel;
        Port := TCustomMyDataSet(ADataset).Connection.port;
        ConnectionTimeout := TCustomMyDataSet(ADataset).Connection.ConnectionTimeout;
        options := TCustomMyDataSet(ADataset).Connection.options;
        //connect;
      End;


Now when compiling it under the 4.x brnach i'm getting an error with the port parameter :

Port := TCustomMyDataSet(ADataset).Connection.port;
options := TCustomMyDataSet(ADataset).Connection.options;
Connection:= TCustomMyDataSet(ADataset).Connection;


How can I solves this (this property moved from public to private ?)

Best Regards

Stephane Wierzbicki
Last edited by swierzbicki on Tue 07 Jun 2005 14:00, edited 1 time in total.
swierzbicki
 
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Postby Ikar » Tue 07 Jun 2005 13:56

Use

Code: Select all
Port := TMyConnection(TCustomMyDataSet(AcxGridTableView.DataController.DataSource.DataSet).Connection).port;


instead
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby swierzbicki » Tue 07 Jun 2005 14:10

You are too quick Ikar ;)
That is working well :)

BTW , I like the "Default Fields" option :) THAT'S GREAT
I see a lot of new options :) , but where can I find description ?
You will tell me to check the FAQ but where can I found the FAQ link / file ?

anyways, this release looks REALLY promising :)
swierzbicki
 
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Postby Ikar » Tue 07 Jun 2005 14:22

> I see a lot of new options , but where can I find description ?

Please see MyDAC help

> You will tell me to check the FAQ but where can I found the FAQ link / file ?

In root MyDAC folder

> anyways, this release looks REALLY promising

Thanks
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby swierzbicki » Tue 07 Jun 2005 14:39

Allright, you just forgot to put the FAQ.htm file with the Delphi 7 installation
I found it in the D2005 installation.

For the new properties, it seems that there is an old help file bundled with both installations (D7 and D2005).

Here is the TmyConnection property help :

type
TMyConnectionOptions = class(TCustomMyConnectionOptions)
published
property Compress: boolean;
property Direct: boolean;
property Embedded: boolean: boolean;
property Protocol: TMyProtocol;
end;
swierzbicki
 
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Postby Ikar » Wed 08 Jun 2005 06:44

> For the new properties, it seems that there is an old help file bundled with both installations (D7 and D2005).

Please see TCustomMyDataSet.Options topic for DefaultValues property description
Ikar
 
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

Postby swierzbicki » Wed 08 Jun 2005 07:40

Thank you, I missed it :roll:
swierzbicki
 
Posts: 451
Joined: Wed 19 Jan 2005 09:59


Return to MySQL Data Access Components