An idea - if you use an interface object (TInterfacedObject) then could you use QueryInterface? >From: "Steven Wild" <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >To: Multiple recipients of list delphi <[EMAIL PROTECTED]> >Subject: [DUG]: Accessing methods >Date: Thu, 9 Mar 2000 17:25:53 +1300 > > >We have a situation where we want to run a method. The method name is >valid and is of a known structural signature. However the name of the >method is stored in a string variable. There are several methods available >with the same structural signature. Any one of them could be in the >variable. > >In this circumstance it is inappropriate to use an if else if else if ..... >type structure. > >We have experience defining a procedural type and then latter assigning a >method returned as a string from a DLL to it as in > @OpenForm := GetProcAddress(dllHandle, pchar(Proc)); > OpenForm(Application, MainForm); > >How do we do the same thing when we aren't using dlls and therefore don't >have a DLL handle to include in the call to GetProcAddress or the like? > >Steven ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz