DataSnap with FireDac

0

In an application with DataSnap, I used SQLConnection :

procedure TForm1.Button1Click(Sender: TObject);
var ConectaServidor : TUClasseServidorClient;
begin
 ConectaServidor := TUClasseServidorClient.Create(SQLConnection1.DBXConnection);
 try
     ShowMessage(ConectaServidor.mostrarTexto(Edit1.Text));
 finally
     ConectaServidor.Free;
 end;
end;

But now I need to use FDConnection and I need to know what its parameter is equivalent to the SQLConnection DBXConnection :

ConectaServidor := TUClasseServidorClient.Create(FDConnection1.parâmetro);
    
asked by anonymous 25.09.2017 / 18:30

1 answer

0

You will need to change the class TUCclassServerClient to accept a TFDConnection in Create.

They are very different components and there is no direct correspondence between the TDBXConnection class and no TFDConnection property.

    
25.09.2017 / 22:37