One handy contruct to use with this is also:
type
TMyEvent = procedure(param: string; param2: boolean) of object;
Then you have a pointer to a function type.
And from memory:
var
MyProc: TMyEvent;
begin
MyProc := TMyEvent(StringList.Objects[1]);
MyProc('Hello', True);
end;
The above is from memory...
--On Thursday, April 05, 2001 5:48 PM +1200 Stephen Bertram
<[EMAIL PROTECTED]> wrote:
> The simple way I found to do this was to set up a StringList with the name
> of the function in the list and a pointer to the function in the Object
> property.
--
There are exceptions, I'm sure, but the Windows 2000 on-line community
seems to have, in general, the moral and spiritual qualities of your
average porn site. (c) Bryan Pfaffenberger, Linux Journal, Jan 2001.
---------------------------------------------------------------------------
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"