thanks for that....will take a look when I am finished what I am upto now.

Cheers, Jeremy

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Max Nilson
> Sent: 10 December, 2000 4:37 PM
> To: Multiple recipients of list delphi
> Subject: RE: [DUG]: Can delphi do this ?
>
>
> Jeremy Coulter asked:
>
> > I came accross a function in VB6 the other day called
> > "CallFunctionByName" which does basically as it says.
>
> > Say (as in our case) we want to call a function based on an
> > index passed from a control or where ever, and you have already
> > created a function or procedure called say "MyFunction_123" and
> > the index you pass has the value of 123, you go something like
> > CallFunctionByName("MyFunction_"&iIndex) which will call teh
> > function MyFunction_123.
>
> > Is there anything in Delphi that does this sort of thing ?
>
> Yeah, you can do this as long are you write some code to walk the VMT of a
> class and check the names of the methods available.
>
> Apart from that you are more likely to want to use IDispatch to do the
> same thing but in a much cleaner fashion.
>
> Now, back to some more counter strike 8-)
>
> Cheers, Max.
>
>
> ------------------------------------------------------------------
> ---------
>     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