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 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 ...

-Laco.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to