Page 1 of 1

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

Posted: Tue 07 Jun 2005 13:51
by swierzbicki
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

Posted: Tue 07 Jun 2005 13:56
by Ikar
Use

Code: Select all

Port := TMyConnection(TCustomMyDataSet(AcxGridTableView.DataController.DataSource.DataSet).Connection).port;
instead

Posted: Tue 07 Jun 2005 14:10
by swierzbicki
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 :)

Posted: Tue 07 Jun 2005 14:22
by Ikar
> 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

Posted: Tue 07 Jun 2005 14:39
by swierzbicki
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;

Posted: Wed 08 Jun 2005 06:44
by Ikar
> 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

Posted: Wed 08 Jun 2005 07:40
by swierzbicki
Thank you, I missed it :roll: