Re: [fpc-pascal] Class helper method overloading ?

2016-10-20 Thread LacaK
http://bugs.freepascal.org/view.php?id=30761 Hi, is there posibility introduce in class helper method with same name like in base class ? For example: TSQLQueryHelper = class helper for TSQLQuery public procedure ExecSQL(const ASQL: string; const Args: array of const); overload;

Re: [fpc-pascal] Class helper method overloading ?

2016-10-12 Thread LacaK
Why not create a descendent class simply ? Yes it is what I have used ;-) I have one instance of variable: {$IFDEF xxx} Query: TRemoteQuery; {$ELSE} Query: TSQLQuery; {$ENDIF} TRemoteQuery has ExecSQL(A,B) as own method. I wanted use TSQLQuery but only difference is missing ExecSQL(A,B) so

Re: [fpc-pascal] Class helper method overloading ?

2016-10-12 Thread Michael Van Canneyt
On Wed, 12 Oct 2016, LacaK wrote: Hi, is there posibility introduce in class helper method with same name like in base class ? For example: TSQLQueryHelper = class helper for TSQLQuery public procedure ExecSQL(const ASQL: string; const Args: array of const); overload; end;

[fpc-pascal] Class helper method overloading ?

2016-10-12 Thread LacaK
Hi, is there posibility introduce in class helper method with same name like in base class ? For example: TSQLQueryHelper = class helper for TSQLQuery public procedure ExecSQL(const ASQL: string; const Args: array of const); overload; end; procedure TSQLQueryHelper.ExecSQL(const