On Fri, Jul 17, 2015 at 11:30 AM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote:
> On 2015-07-17 15:13, silvioprog wrote: > > I need to call a method dynamically by its name over string and pass some > > parameters to it. > > You mean like what FPCUnit, DUnit or FPTest unit testing frameworks do? > If so, just take a look at any of them to see how they call the test > methods. > > Regards, > - Graeme - I know how FPCUnit does, but AFAIK it don't pass parameters for the triggered methods. =/ About DUnit, instead of take a loot at its code, I just use the System.Rtti.Invoke() feature. -- Silvio Clécio My public projects - github.com/silvioprog
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal