Page 1 of 1

W1058 Implicit string cast with potential data loss from

Posted: 01.03.2010, 03:26
by ffabian
I receive the warning:

[DCC Warning] ZDbcInterbase6.pas(527): W1058 Implicit string cast with potential data loss from 'string' to 'AnsiString'

line 527
StrPCopy(DBName, HostName + '/' + IntToStr(Port) + ':' + Database)

line 529
StrPCopy(DBName, HostName + ':' + Database)

line 523
StrPCopy(DBName, Database);

Thank you

Posted: 03.03.2010, 21:28
by mdaems
Can you fix it? Please do so. But make sure other compilers can also handle it.
I'll be glad to try your patch here on my old compilers and integrate it in the official zeoslib code when it doesn't break anything.

Mark

Posted: 08.03.2010, 14:44
by ffabian
I sorry, I tried :wallb: but I can not find the solution, I not a guru of Delphi

Fabian :(