2
Using Unidac components for Delphi XE5, I found an error when assigning dynamic values to the Tuniconnection component, responsible for connecting to the database.
Error message appears after Connected line := True;
dm = Datamodule where the component is.
try
with dm.conServer do
begin
Server := 'localhost';
Port := 5432;
Username := 'postgres';
Password := 'postgres';
Database := 'newserver';
Connected := True;
end;
except
on E: Exception do
ShowMessage(E.ClassName + ' Erro : ' + E.Message);
end;
Are any parameters missing? What would I be doing wrong?
@Alexschmitt, always in order :D
– Caputo
Thanks for the information, they were very useful to me, but unfortunately not yet solved the problem, the error persists.
– Alex Schmitt
I will migrate to Firedac, I believe to be a good solution in addition to native. Thank you.
– Alex Schmitt