How to replace TZParam.LoadFromFile

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
tintinux
Junior Boarder
Junior Boarder
Posts: 44
Joined: 19.05.2010, 10:39

How to replace TZParam.LoadFromFile

Post by tintinux »

Hi

In Zeos 8.0 the LoadFromFile method of the new type TZParam is marked as deprecated, and the message is "use Overload instead"
What does it mean ? Overload is a reserved word, can't be a method name...

Thanks
User avatar
aehimself
Zeos Dev Team
Zeos Dev Team
Posts: 789
Joined: 18.11.2018, 17:37
Location: Hungary

Re: How to replace TZParam.LoadFromFile

Post by aehimself »

A quick google search will give you the knowledge you are looking for. No, it does not mean you have to type "overload", but to use an other, overloaded version. The error message means the method you are calling is deprecated and possibly will be deleted soon. So you should call other methods (.LoadFromStream) or a different overload of the same method:

Code: Select all

Procedure MyMethod(Const inInput: Integer); Overload;
Procedure MyMethod(Const inInput: String); Overload;
Procedure MyMethod(Const inInput: TObject); Overload;
Delphi 12.1, Zeos 8 from latest GIT snapshot
Using:
- MySQL server 8.0.18; libmariadb.dll 3.3.8
- Oracle server 11.2.0, 12.1.0, 19.0.0; oci.dll 21.13
- MSSQL 2012, 2019; sybdb.dll FreeTDS_2435
- SQLite 3.45.2
Post Reply