[fpc-pascal] SQLDB: Set port in TSQLConnector

Luis Henrique luis at softsatsistemas.com.br
Fri Jan 15 12:54:02 CET 2021


12.01.2021, 06:06, "Michael Van Canneyt via fpc-pascal" <fpc-pascal at lists.freepascal.org>:
> On Mon, 11 Jan 2021, Virgo Pärna via fpc-pascal wrote:
>
>>  On Fri, 08 Jan 2021 14:25:09 -0300, Luis - SoftSAT Sistemas via fpc-pascal <fpc-pascal at lists.freepascal.org> wrote:
>>>  I'm trying to connect to a Firebird database with TSQLConnector, but I can't
>>>  seem to find a way to set the port number.
>>>
>>>  Looking at TIBConnection, there is a port property, but none in TSQLConnector.
>>
>>          You can use
>>  HostName := ServerName/Port;
>
> Port is normally handled using the Params property, so
>
> Params.Values['port']:='1234'
>
> should do.
>
> Michael.
> ,
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Thanks Virgo and Michael both ways work!


More information about the fpc-pascal mailing list