Oops, I may have just sent you on a wild goose chase.  I'm curious about how
to do this now so I'll try and have a look at it tonight and let you know -
unless of course someone else knows how to do it already. :-)


Nahum.

> -----Original Message-----
> From: Nahum Wild [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 05, 2001 16:28 PM
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: How to Do This
> 
> 
> You can do it if the methods are published.  
> TObject.MethodAddress takes a
> string and returns a pointer to the published method of that 
> name, or nil if
> no method with the passed name exists.
> 
> If you want I could slap some code together.
> 
> 
> Nahum.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, April 06, 2001 04:28 AM
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: How to Do This
> > 
> > 
> > Hi all.
> > 
> > Some time back (months I think) I asked if there was a way to 
> > call a function or procedure based on its name dynamically,
> > 
> > I.e the functions might me called 
> > 
> > Function1
> > function2
> > Function_test
> > etc.
> > In VB you can go CallByName("Function1") and it will call the 
> > function, anf I want/need to do this in Delphi.
> > 
> > Like I say,someone said that this can be done in some form, 
> > but I was wondering how they do it etc. and IF they can show 
> > me a bit fo code hwo its done.
> > 
> > Thanks, Jeremy Coulter
> >  
> >  
> >  
> > Jeremy Coulter (Manager)
> > Visual Software Solutions
> > Christchurch, New Zealand
> > PH 03-3521595
> > FAX 03-3521596
> > MOBILE 021-2533214
> > www.vss.co.nz 
> > 
> > --------------------------------------------------------------
> > -------------
> >     New Zealand Delphi Users group - Delphi List - 
> > [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
> > To UnSub, send email to: [EMAIL PROTECTED] 
> > with body of "unsubscribe delphi"
> > 
> --------------------------------------------------------------
> -------------
>     New Zealand Delphi Users group - Delphi List - 
> [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED] 
> with body of "unsubscribe delphi"
> 
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to