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

I know that I can solve it with descendant, which I did before, but I am still interesting if it is possible do with helper and in general if there can be overloaded method ...


fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org

Reply via email to